Verified Commit 095a4bc1 authored by Florian Pritz's avatar Florian Pritz
Browse files

postfix: Make transport map a template



Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent 78a7aacb
...@@ -3,34 +3,30 @@ ...@@ -3,34 +3,30 @@
- name: install postfix - name: install postfix
pacman: name=postfix state=present pacman: name=postfix state=present
- name: install main.cf - name: install template configs
template: src=main.cf.j2 dest=/etc/postfix/main.cf owner=root group=root mode=644 template: src={{item}}.j2 dest=/etc/postfix/{{item}} owner=root group=root mode=644
notify: notify:
- reload postfix - reload postfix
with_items:
- name: install master.cf - main.cf
template: src=master.cf.j2 dest=/etc/postfix/master.cf owner=root group=root mode=644 - master.cf
notify: - transport
- reload postfix - aliases
- name: install aliases
template: src=aliases.j2 dest=/etc/postfix/aliases owner=root group=root mode=644
- name: update aliases db
command: postalias /etc/postfix/aliases
- name: install additional files - name: install additional files
template: src=files/{{item}} dest=/etc/postfix/{{item}} owner=root group=root mode=644 copy: src={{item}} dest=/etc/postfix/{{item}} owner=root group=root mode=644
with_items: with_items:
- access_client - access_client
- access_sender - access_sender
- access_helo - access_helo
- body_checks - body_checks
- header_checks - header_checks
- transport
- relocated - relocated
- compat_maps - compat_maps
- name: update aliases db
command: postalias /etc/postfix/aliases
- name: postmap additional files - name: postmap additional files
command: postmap /etc/postfix/{{item}} command: postmap /etc/postfix/{{item}}
with_items: with_items:
......
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