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: service:
name: postfix name: postfix
state: restarted state: restarted
listen: listen: __postfix_restart
- "postfix_restart"
become: True become: True
become_user: root

View File

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

View File

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