fix smtp auth files
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-08-24 16:04:37 +02:00
parent e497f6e421
commit 5ea60e199e

View File

@ -14,14 +14,14 @@
path: /etc/postfix/smtp_auth.db
register: __authdb
- name: Create sasl_passwd.db
- name: Create smtp_auth.db
command: /usr/sbin/postmap hash:/etc/postfix/smtp_auth
when: not __authdb.stat.exists or __auth_result.changed
notify: __postfix_restart
- name: Set permissions for sasl_passwd.db
- name: Set permissions for smtp_auth.db
file:
path: /etc/postfix/sasl_passwd.db
path: /etc/postfix/smtp_auth.db
owner: root
group: root
mode: 0600