bastion / postfix: clean up tls_policy duplicates

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2022-05-24 12:33:26 -07:00
parent a1af68173d
commit caf5f130c8
3 changed files with 1 additions and 16 deletions

View file

@ -0,0 +1 @@
[mx2.redhat.com] none

View file

@ -1 +0,0 @@
redhat.com may

View file

@ -30,21 +30,6 @@
- config
- 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
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"