This commit is contained in:
parent
e497f6e421
commit
5ea60e199e
@ -14,14 +14,14 @@
|
|||||||
path: /etc/postfix/smtp_auth.db
|
path: /etc/postfix/smtp_auth.db
|
||||||
register: __authdb
|
register: __authdb
|
||||||
|
|
||||||
- name: Create sasl_passwd.db
|
- name: Create smtp_auth.db
|
||||||
command: /usr/sbin/postmap hash:/etc/postfix/smtp_auth
|
command: /usr/sbin/postmap hash:/etc/postfix/smtp_auth
|
||||||
when: not __authdb.stat.exists or __auth_result.changed
|
when: not __authdb.stat.exists or __auth_result.changed
|
||||||
notify: __postfix_restart
|
notify: __postfix_restart
|
||||||
|
|
||||||
- name: Set permissions for sasl_passwd.db
|
- name: Set permissions for smtp_auth.db
|
||||||
file:
|
file:
|
||||||
path: /etc/postfix/sasl_passwd.db
|
path: /etc/postfix/smtp_auth.db
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
Loading…
Reference in New Issue
Block a user