Browse Source

fix notification; add missing become_user

pull/1/head
Robert Kaussow 4 years ago
parent
commit
c85b030352
  1. 4
      handlers/main.yml
  2. 8
      tasks/config.yml
  3. 1
      tasks/install.yml

4
handlers/main.yml

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

8
tasks/config.yml

@ -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

1
tasks/install.yml

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

Loading…
Cancel
Save