summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-07-13 23:24:05 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:53:07 +0200
commit9ac2057bb6f1465b8392f18552ac1df17f6d81d6 (patch)
treeeea3f924905d333fc156c026d3ce58e1eccdbb8b /roles
parent176f32c205ddce2dbabcf4fd3298ed48102ee0dd (diff)
Split templates / files in lookup tables.
Diffstat (limited to 'roles')
-rw-r--r--roles/MX/files/etc/postfix/virtual/alias.cf (renamed from roles/MX/templates/etc/postfix/virtual/alias.cf.j2)0
-rw-r--r--roles/MX/files/etc/postfix/virtual/alias_domains.cf (renamed from roles/MX/templates/etc/postfix/virtual/alias_domains.cf.j2)0
-rw-r--r--roles/MX/files/etc/postfix/virtual/catchall.cf (renamed from roles/MX/templates/etc/postfix/virtual/catchall.cf.j2)0
-rw-r--r--roles/MX/files/etc/postfix/virtual/domains.cf (renamed from roles/MX/templates/etc/postfix/virtual/domains.cf.j2)0
-rw-r--r--roles/MX/files/etc/postfix/virtual/list.cf (renamed from roles/MX/templates/etc/postfix/virtual/list.cf.j2)0
-rw-r--r--roles/MX/files/etc/postfix/virtual/mailbox.cf (renamed from roles/MX/templates/etc/postfix/virtual/mailbox.cf.j2)0
-rw-r--r--roles/MX/files/etc/postfix/virtual/reserved_alias.pcre (renamed from roles/MX/templates/etc/postfix/virtual/reserved_alias.pcre.j2)0
-rw-r--r--roles/MX/tasks/main.yml17
8 files changed, 11 insertions, 6 deletions
diff --git a/roles/MX/templates/etc/postfix/virtual/alias.cf.j2 b/roles/MX/files/etc/postfix/virtual/alias.cf
index 1710376..1710376 100644
--- a/roles/MX/templates/etc/postfix/virtual/alias.cf.j2
+++ b/roles/MX/files/etc/postfix/virtual/alias.cf
diff --git a/roles/MX/templates/etc/postfix/virtual/alias_domains.cf.j2 b/roles/MX/files/etc/postfix/virtual/alias_domains.cf
index 119b8b2..119b8b2 100644
--- a/roles/MX/templates/etc/postfix/virtual/alias_domains.cf.j2
+++ b/roles/MX/files/etc/postfix/virtual/alias_domains.cf
diff --git a/roles/MX/templates/etc/postfix/virtual/catchall.cf.j2 b/roles/MX/files/etc/postfix/virtual/catchall.cf
index 66053c8..66053c8 100644
--- a/roles/MX/templates/etc/postfix/virtual/catchall.cf.j2
+++ b/roles/MX/files/etc/postfix/virtual/catchall.cf
diff --git a/roles/MX/templates/etc/postfix/virtual/domains.cf.j2 b/roles/MX/files/etc/postfix/virtual/domains.cf
index 4ec247d..4ec247d 100644
--- a/roles/MX/templates/etc/postfix/virtual/domains.cf.j2
+++ b/roles/MX/files/etc/postfix/virtual/domains.cf
diff --git a/roles/MX/templates/etc/postfix/virtual/list.cf.j2 b/roles/MX/files/etc/postfix/virtual/list.cf
index 3b364c0..3b364c0 100644
--- a/roles/MX/templates/etc/postfix/virtual/list.cf.j2
+++ b/roles/MX/files/etc/postfix/virtual/list.cf
diff --git a/roles/MX/templates/etc/postfix/virtual/mailbox.cf.j2 b/roles/MX/files/etc/postfix/virtual/mailbox.cf
index 4654607..4654607 100644
--- a/roles/MX/templates/etc/postfix/virtual/mailbox.cf.j2
+++ b/roles/MX/files/etc/postfix/virtual/mailbox.cf
diff --git a/roles/MX/templates/etc/postfix/virtual/reserved_alias.pcre.j2 b/roles/MX/files/etc/postfix/virtual/reserved_alias.pcre
index f1c79c7..f1c79c7 100644
--- a/roles/MX/templates/etc/postfix/virtual/reserved_alias.pcre.j2
+++ b/roles/MX/files/etc/postfix/virtual/reserved_alias.pcre
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