From 9ac2057bb6f1465b8392f18552ac1df17f6d81d6 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 13 Jul 2014 23:24:05 +0200 Subject: Split templates / files in lookup tables. --- roles/MX/tasks/main.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'roles/MX/tasks') 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 -- cgit v1.2.3