fix notification; add missing become_user
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2019-01-13 23:39:38 +01:00
parent a2950895aa
commit c85b030352
3 changed files with 7 additions and 6 deletions

View File

@ -3,6 +3,6 @@
service:
name: postfix
state: restarted
listen:
- "postfix_restart"
listen: __postfix_restart
become: True
become_user: root

View File

@ -8,7 +8,7 @@
owner: root
group: root
mode: 0644
notify: postfix_restart
notify: __postfix_restart
- name: Create sasl
template:
@ -28,7 +28,7 @@
command: /usr/sbin/postmap hash:/etc/postfix/sasl_passwd
when: not sasldb.stat.exists or sasl_result.changed
register: sasldb_update
notify: postfix_restart
notify: __postfix_restart
- name: Set permissions for sasl_passwd.db
file:
@ -36,7 +36,7 @@
owner: root
group: root
mode: 0600
notify: postfix_restart
notify: __postfix_restart
- name: Override outgoing header
template:
@ -56,6 +56,6 @@
command: "/usr/sbin/postmap hash:/etc/postfix/sender_canonical"
when: not senderdb.stat.exists or sender_result.changed
register: senderdb_update
notify: postfix_restart
notify: __postfix_restart
become: True
become_user: root

View File

@ -10,3 +10,4 @@
- cyrus-sasl-plain
- mailx
become: True
become_user: root