Update to 2021-01-28 20:00

master
Daniel Berteaud 4 years ago
parent 96d1905989
commit 9960f28636
  1. 4
      roles/postfix/handlers/main.yml
  2. 10
      roles/postfix/tasks/main.yml

@ -1,7 +1,5 @@
--- ---
- name: restart postfix - name: restart postfix
service: name=postfix state=restarted enabled=yes service: name=postfix state=restarted
- name: rehash relay_auth
command: postmap /etc/postfix/relay_auth
... ...

@ -20,7 +20,15 @@
- name: Deploy Relay authentication map - name: Deploy Relay authentication map
template: src=relay_auth.j2 dest=/etc/postfix/relay_auth mode=600 owner=root group=root template: src=relay_auth.j2 dest=/etc/postfix/relay_auth mode=600 owner=root group=root
notify: rehash relay_auth register: relay_auth_file
- name: Check if relay_auth has been hashed
stat: path=/etc/postfix/relay_auth.db
register: relay_auth_hashed
- name: Rehash postfix relay auth
command: postmap /etc/postfix/relay_auth
when: relay_auth_file.changed or not relay_auth_hashed.stat.exists
- name: Handle postfix port - name: Handle postfix port
iptables_raw: iptables_raw:

Loading…
Cancel
Save