Преглед на файлове

Create /decrypted directory even if encfs is not used.

Helps with issue #120.
Sven Neuhaus преди 9 години
родител
ревизия
ae58053653
променени са 2 файла, в които са добавени 6 реда и са изтрити 3 реда
  1. 0
    3
      roles/common/tasks/encfs.yml
  2. 6
    0
      roles/common/tasks/main.yml

+ 0
- 3
roles/common/tasks/encfs.yml Целия файл

@@ -8,9 +8,6 @@
8 8
 - name: Create encrypted directory
9 9
   file: state=directory path=/encrypted
10 10
 
11
-- name: Create decrypted directory
12
-  file: state=directory path=/decrypted
13
-
14 11
 - name: Add mail user to fuse group
15 12
   user: name=mail append=yes groups=fuse
16 13
 

+ 6
- 0
roles/common/tasks/main.yml Целия файл

@@ -57,6 +57,12 @@
57 57
   notify: restart apache
58 58
   when: ansible_distribution_release == 'trusty'
59 59
 
60
+- name: Create decrypted directory (even if encfs isn't used)
61
+  file: state=directory path=/decrypted
62
+
63
+- name: Set decrypted directory permissions
64
+  file: state=directory path=/decrypted group=mail mode=775
65
+
60 66
 - include: encfs.yml tags=encfs
61 67
 - include: users.yml tags=users
62 68
 - include: ssl.yml tags=ssl

Loading…
Отказ
Запис