Browse Source

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 9 years ago
parent
commit
d5217ea1cd
2 changed files with 4 additions and 1 deletions
  1. 3
    0
      roles/common/tasks/encfs.yml
  2. 1
    1
      roles/common/tasks/users.yml

+ 3
- 0
roles/common/tasks/encfs.yml View 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 View 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…
Cancel
Save