add handler for postmap conf files
This commit is contained in:
parent
d545354e4d
commit
5fd878b1f5
@ -7,3 +7,9 @@
|
|||||||
|
|
||||||
- name: restart postfix
|
- name: restart postfix
|
||||||
service: name=postfix state=restarted
|
service: name=postfix state=restarted
|
||||||
|
|
||||||
|
- name: postmap sender relay
|
||||||
|
command: /usr/sbin/postmap /etc/postfix/sender_relay
|
||||||
|
|
||||||
|
- name: postmap sasl passwd
|
||||||
|
command: /usr/sbin/postmap /etc/postfix/sasl_passwd
|
||||||
|
@ -32,7 +32,9 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: restart postfix
|
notify:
|
||||||
|
- postmap sender relay
|
||||||
|
- restart postfix
|
||||||
when: postfix_sender_relay is defined
|
when: postfix_sender_relay is defined
|
||||||
|
|
||||||
- name: postfix | sasl passwd
|
- name: postfix | sasl passwd
|
||||||
@ -42,6 +44,8 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: restart postfix
|
notify:
|
||||||
|
- postmap sasl passwd
|
||||||
|
- restart postfix
|
||||||
when: postfix_sasl_passwd is defined
|
when: postfix_sasl_passwd is defined
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user