mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-29 10:15:31 +02:00
Update to 2023-11-22 16:00
This commit is contained in:
@@ -26,19 +26,19 @@
|
||||
notify: restart postfix
|
||||
tags: postfix
|
||||
|
||||
- name: Deploy Relay authentication map
|
||||
- name: Deploy relay_auth
|
||||
template: src=relay_auth.j2 dest=/etc/postfix/relay_auth mode=600 owner=root group=root
|
||||
register: relay_auth_file
|
||||
notify: rehash relay_auth
|
||||
tags: postfix
|
||||
|
||||
- name: Check if relay_auth has been hashed
|
||||
stat: path=/etc/postfix/relay_auth.db
|
||||
register: relay_auth_hashed
|
||||
- name: Deploy relay_domains
|
||||
template: src=relay_domains.j2 dest=/etc/postfix/relay_domains mode=644 owner=root group=root
|
||||
notify: rehash relay_domains
|
||||
tags: postfix
|
||||
|
||||
- name: Rehash postfix relay auth
|
||||
command: postmap /etc/postfix/relay_auth
|
||||
when: relay_auth_file.changed or not relay_auth_hashed.stat.exists
|
||||
- name: Deploy transport_maps
|
||||
template: src=transport_maps.j2 dest=/etc/postfix/transport_maps mode=644 owner=root group=root
|
||||
notify: rehash transport_maps
|
||||
tags: postfix
|
||||
|
||||
- name: Handle postfix port
|
||||
|
Reference in New Issue
Block a user