Commit 44fe67ba authored by Phillip Smith (fukawi2)'s avatar Phillip Smith (fukawi2)
Browse files

postfix; move some tasks to be handlers

parent 5534a556
......@@ -6,5 +6,22 @@
- name: reload postfix
command: postfix reload
- name: postmap additional files
command: postmap /etc/postfix/{{item}}
with_items:
- access_client
- access_sender
- access_sender-post-filter
- access_helo
- access_recipient
- transport
- relocated
- relay_transport_map
- domains
- mailman_compat
- name: update aliases db
command: postalias /etc/postfix/aliases
- name: postmap relay_passwords
command: postmap /etc/postfix/relay_passwords
......@@ -15,6 +15,8 @@
- aliases
- relay_transport_map
- users.pcre
notify:
- update aliases db
- name: install additional files
copy: src={{item}} dest=/etc/postfix/{{item}} owner=root group=root mode=0644
......@@ -29,23 +31,8 @@
- relocated
- domains
- mailman_compat
- name: update aliases db
command: postalias /etc/postfix/aliases
- name: postmap additional files
command: postmap /etc/postfix/{{item}}
with_items:
- access_client
- access_sender
- access_sender-post-filter
- access_helo
- access_recipient
- transport
- relocated
- relay_transport_map
- domains
- mailman_compat
notify:
- postmap additional files
- name: create dhparam 2048
command: openssl dhparam -out /etc/postfix/dh2048.pem 2048 creates=/etc/postfix/dh2048.pem
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment