|
@@ -32,10 +32,18 @@
|
32
|
32
|
home=/data
|
33
|
33
|
shell=/usr/sbin/nologin
|
34
|
34
|
|
|
35
|
+- name: Ensure mail directory is in place
|
|
36
|
+ file:
|
|
37
|
+ state=directory
|
|
38
|
+ path=/data/mail
|
|
39
|
+ owner=vmail
|
|
40
|
+ group=dovecot
|
|
41
|
+ mode=0770
|
|
42
|
+
|
35
|
43
|
- name: Ensure mail domain directories are in place
|
36
|
44
|
file:
|
37
|
45
|
state=directory
|
38
|
|
- path=/data/{{ item.name }}
|
|
46
|
+ path=/data/mail/{{ item.name }}
|
39
|
47
|
owner=vmail
|
40
|
48
|
group=dovecot
|
41
|
49
|
mode=0770
|
|
@@ -44,7 +52,7 @@
|
44
|
52
|
- name: Ensure mail directories are in place
|
45
|
53
|
file:
|
46
|
54
|
state=directory
|
47
|
|
- path=/data/{{ item.domain }}/{{ item.account }}
|
|
55
|
+ path=/data/mail/{{ item.domain }}/{{ item.account }}
|
48
|
56
|
owner=vmail
|
49
|
57
|
group=dovecot
|
50
|
58
|
with_items: '{{ mail_virtual_users }}'
|