diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2014-07-13 23:24:05 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:53:07 +0200 |
commit | 9ac2057bb6f1465b8392f18552ac1df17f6d81d6 (patch) | |
tree | eea3f924905d333fc156c026d3ce58e1eccdbb8b /roles/MX/tasks | |
parent | 176f32c205ddce2dbabcf4fd3298ed48102ee0dd (diff) |
Split templates / files in lookup tables.
Diffstat (limited to 'roles/MX/tasks')
-rw-r--r-- | roles/MX/tasks/main.yml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/roles/MX/tasks/main.yml b/roles/MX/tasks/main.yml index 8cd5106..cae498e 100644 --- a/roles/MX/tasks/main.yml +++ b/roles/MX/tasks/main.yml @@ -23,11 +23,11 @@ owner=root group=root mode=0755 -- name: Copy lookup tables - template: src=etc/postfix/virtual/{{ item }}.j2 - dest=/etc/postfix-{{ postfix_instance[inst].name }}/virtual/{{ item }} - owner=root group=root - mode=0644 +- name: Copy lookup tables (1) + file: src=etc/postfix/virtual/{{ item }} + dest=/etc/postfix-{{ postfix_instance[inst].name }}/virtual/{{ item }} + owner=root group=root + mode=0644 with_items: - domains.cf # no need to reload upon change, as cleanup(8) is short-running @@ -37,7 +37,12 @@ - list.cf - alias_domains.cf - catchall.cf - - transport + +- name: Copy lookup tables (2) + template: src=etc/postfix/virtual/transport.j2 + dest=/etc/postfix-{{ postfix_instance[inst].name }}/virtual/transport + owner=root group=root + mode=0644 - name: Compile the Postfix transport maps # trivial-rewrite(8) is a long-running process, so it's safer to reload |