From bce7456502de950cf7b13d7c782f71477bea9944 Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 8 Apr 2019 23:09:14 +0200 Subject: [PATCH] complete variable for autofs --- README.md | 10 ++++-- group_vars/workstation | 74 +++++++++++++++++++++++++++++++++++++++--- 2 files changed, 76 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 4718d93..230ef19 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ## commande ansible ***launch playbook on staging*** -`ansible-playbook -i staging site.yml --ask-become-pass` +`ansible-playbook -i staging site.yml --ask-become-pass --ask-vault-pass` ***init new role architecture*** `ansible-galaxy user_config init ` @@ -35,11 +35,13 @@ - create user - copy clé RSA -- [ ] samba automount role +- [X] samba automount role - géré les credential en fichier - initialisé les variable pour les diferent périphérique -- [ ] davfs mount +- [X] davfs mount + + - [ ] VM server @@ -53,6 +55,8 @@ - clone ansible repo - [ ] workstation role + - cups + - bluetooth et tlp pour laptop - install wm software - install worstation software (firefox keepass,pulseaudio,ncmpcc) diff --git a/group_vars/workstation b/group_vars/workstation index 9b4aced..235edf8 100644 --- a/group_vars/workstation +++ b/group_vars/workstation @@ -4,20 +4,84 @@ systemd_mounts: mount: /mnt/diskstation/media type: cifs options: - - user=admin - - password= + - credentials=/etc/creds/.diskstation_credentials - uid=1024 + - gid=100 automount: true diskstation_music: share: //diskstation/music mount: /mnt/diskstation/music type: cifs options: - - user=admin - - password=XiEhusW6 + - credentials=/etc/creds/.diskstation_credentials - uid=1024 + - gid=100 automount: true + diskstation_home: + share: //diskstation/homes/admin + mount: /mnt/diskstation/home + type: cifs + options: + - credentials=/etc/creds/.diskstation_credentials + - uid=1024 + - gid=100 + automount: true + diskstation_photo: + share: //diskstation/photo + mount: /mnt/diskstation/photo + type: cifs + options: + - credentials=/etc/creds/.diskstation_credentials + - uid=1024 + - gid=100 + automount: true + diskstation_ebook: + share: //diskstation/ebook + mount: /mnt/diskstation/ebook + type: cifs + options: + - credentials=/etc/creds/.diskstation_credentials + - uid=1024 + - gid=100 + automount: true + davfs_share: + share: https://diskstation.ducamps.win:5006/home/keepass + mount: /mnt/diskstation/keepass + type: davfs + options: + - uid=1024 + automount: true + systemd_mounts_enabled: - diskstation_media - - diskstation_music \ No newline at end of file + - diskstation_music + - diskstation_ebook + - davfs_share + - diskstation_photo + - diskstation_home + +credentials_files: + 1: + type: smb + path: /etc/creds/.diskstation_credentials + username: admin + password: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 30633733333935656635616232623338613638616139303366313330366562323830613032383366 + 3735306661306437626361653035326462633330643362300a366432393730653561363431313930 + 64613130396636656461346164643033353735313363336638663331393532626132633233373330 + 6332616435643530320a636366323634363363636566363665393064376138653666623563326330 + 3536 + 2: + type: davfs + path: /etc/davfs2/secrets + adress: https://diskstation.ducamps.win:5006/home/keepass + username: admin + password: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 30633733333935656635616232623338613638616139303366313330366562323830613032383366 + 3735306661306437626361653035326462633330643362300a366432393730653561363431313930 + 64613130396636656461346164643033353735313363336638663331393532626132633233373330 + 6332616435643530320a636366323634363363636566363665393064376138653666623563326330 + 3536