put in header checks postmap and restart
This commit is contained in:
parent
e65ed43d82
commit
1be05a2039
2 changed files with 19 additions and 0 deletions
|
@ -95,6 +95,9 @@
|
||||||
- name: rebuild postfix tls_policy
|
- name: rebuild postfix tls_policy
|
||||||
command: /usr/sbin/postmap /etc/postfix/tls_policy
|
command: /usr/sbin/postmap /etc/postfix/tls_policy
|
||||||
|
|
||||||
|
- name: rebuild postfix header_checks
|
||||||
|
command: /usr/sbin/postmap /etc/postfix/header_checks
|
||||||
|
|
||||||
- name: restart postfix
|
- name: restart postfix
|
||||||
service: name=postfix state=restarted
|
service: name=postfix state=restarted
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,22 @@
|
||||||
- base
|
- base
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
- name: install /etc/postfix/header_checks file
|
||||||
|
copy: src={{ item }} dest=/etc/postfix/header_checks
|
||||||
|
with_first_found:
|
||||||
|
- "postfix/header_checks.{{ inventory_hostname }}"
|
||||||
|
- "postfix/header_checks.{{ host_group }}"
|
||||||
|
- "postfix/header_checks.{{ postfix_group }}"
|
||||||
|
- "postfix/header_checks.{{ datacenter }}"
|
||||||
|
- "postfix/header_checks"
|
||||||
|
notify:
|
||||||
|
- rebuild postfix header_checks
|
||||||
|
- restart postfix
|
||||||
|
tags:
|
||||||
|
- postfix
|
||||||
|
- config
|
||||||
|
- base
|
||||||
|
|
||||||
- name: create /etc/postfix/tls_policy
|
- name: create /etc/postfix/tls_policy
|
||||||
copy: src="postfix/tls_policy" dest=/etc/postfix/tls_policy
|
copy: src="postfix/tls_policy" dest=/etc/postfix/tls_policy
|
||||||
when: inventory_hostname.startswith(('bastion','smtp-mm'))
|
when: inventory_hostname.startswith(('bastion','smtp-mm'))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue