bastion / postfix: clean up tls_policy duplicates
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
a1af68173d
commit
caf5f130c8
3 changed files with 1 additions and 16 deletions
|
@ -0,0 +1 @@
|
||||||
|
[mx2.redhat.com] none
|
|
@ -1 +0,0 @@
|
||||||
redhat.com may
|
|
|
@ -30,21 +30,6 @@
|
||||||
- config
|
- config
|
||||||
- base
|
- base
|
||||||
|
|
||||||
- name: install /etc/postfix/tls_policy file
|
|
||||||
copy: src={{ item }} dest=/etc/postfix/tls_policy mode=0644
|
|
||||||
with_first_found:
|
|
||||||
- "postfix/master.cf/master.cf.{{ inventory_hostname }}"
|
|
||||||
- "postfix/master.cf/master.cf.{{ host_group }}"
|
|
||||||
- "postfix/master.cf/master.cf.{{ postfix_group }}"
|
|
||||||
- "postfix/master.cf/master.cf"
|
|
||||||
when: inventory_hostname.startswith(('bastion'))
|
|
||||||
notify:
|
|
||||||
- restart postfix
|
|
||||||
tags:
|
|
||||||
- postfix
|
|
||||||
- config
|
|
||||||
- base
|
|
||||||
|
|
||||||
- name: Deploy sender_access file
|
- name: Deploy sender_access file
|
||||||
copy: src="{{private}}/files/smtpd/sender_access.{{postfix_group}}" dest="/etc/postfix/sender_access"
|
copy: src="{{private}}/files/smtpd/sender_access.{{postfix_group}}" dest="/etc/postfix/sender_access"
|
||||||
when: postfix_group == "smtp-mm" or postfix_group == "mailman" or postfix_group == "gateway"
|
when: postfix_group == "smtp-mm" or postfix_group == "mailman" or postfix_group == "gateway"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue