add handler for postmap conf files

This commit is contained in:
Ludovic Cartier 2024-12-12 16:44:49 +01:00
parent d545354e4d
commit 5fd878b1f5
2 changed files with 12 additions and 2 deletions

View File

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

View File

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