Sfoglia il codice sorgente

Create main user without "fuse" group, instead add it later as part

of the "encfs" tag. This allows the user to make encfs optional.
Helps with issue #120.
Sven Neuhaus 10 anni fa
parent
commit
d5217ea1cd
2 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 3
    0
      roles/common/tasks/encfs.yml
  2. 1
    1
      roles/common/tasks/users.yml

+ 3
- 0
roles/common/tasks/encfs.yml Vedi File

@@ -14,6 +14,9 @@
14 14
 - name: Add mail user to fuse group
15 15
   user: name=mail append=yes groups=fuse
16 16
 
17
+- name: Add main user to fuse group
18
+  user: name={{ main_user_name }} append=yes groups=fuse
19
+
17 20
 # Check if the /encrypted directory is empty
18 21
 - name: Check for existing encfs
19 22
   shell: ls /encrypted/*

+ 1
- 1
roles/common/tasks/users.yml Vedi File

@@ -1,2 +1,2 @@
1 1
 - name: Create main user account
2
-  user: name={{ main_user_name }} state=present shell={{ main_user_shell }} groups=sudo,fuse
2
+  user: name={{ main_user_name }} state=present shell={{ main_user_shell }} groups=sudo

Loading…
Annulla
Salva