Make use of handlers in postfix role

certbot_on_virtu
_pollion 2020-04-18 16:50:23 +02:00
parent d1a9cd4f6a
commit 467a5b2748
2 changed files with 10 additions and 10 deletions

View File

@ -0,0 +1,8 @@
- name: generate postmaps
command: /usr/sbin/postmap {{ item }}
loop:
- /etc/postfix/canonical
- /etc/postfix/mime_header_checks
- /etc/postfix/recipient_access
- /etc/postfix/sender_login_maps
- /etc/postfix/transport

View File

@ -25,13 +25,5 @@
- postscreen_access.cidr
- sasl/smtpd.conf
- canonical
- name: Generate postmaps
command: /usr/sbin/postmap {{ item }}
when: item | changed
loop:
- /etc/postfix/canonical
- /etc/postfix/mime_header_checks
- /etc/postfix/recipient_access
- /etc/postfix/sender_login_maps
- /etc/postfix/transport
notify:
- generate postmaps