mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-02-02 20:59:02 +08:00
put in header checks postmap and restart
This commit is contained in:
@@ -95,6 +95,9 @@
|
||||
- name: rebuild 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
|
||||
service: name=postfix state=restarted
|
||||
|
||||
|
||||
@@ -55,6 +55,22 @@
|
||||
- base
|
||||
- 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
|
||||
copy: src="postfix/tls_policy" dest=/etc/postfix/tls_policy
|
||||
when: inventory_hostname.startswith(('bastion','smtp-mm'))
|
||||
|
||||
Reference in New Issue
Block a user