This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
ka
/
ansible-role-postfix
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
make transport maps configurable
master
Markus Katharina Brechtel
4 years ago
parent
5ef5b6cb0f
commit
1f2839fae5
4 changed files
with
17 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
handlers/main.yml
+6
-0
tasks/main.yml
+1
-1
templates/main.cf.j2
+7
-0
templates/transport_maps.j2
+ 3
- 0
handlers/main.yml
View File
@@ -1,5 +1,8 @@
---
- name: postmap transport_maps
command: postmap /etc/postfix/transport_maps
- name: postmap virtual_alias_domains
command: postmap /etc/postfix/virtual_alias_domains
+ 6
- 0
tasks/main.yml
View File
@@ -23,6 +23,12 @@
dest: /etc/postfix/main.cf
notify: reload postfix
- name: postfix transport_maps
template:
src: transport_maps.j2
dest: /etc/postfix/transport_maps
notify: postmap transport_maps
- name: postfix virtual_alias_domains
template:
src: virtual_alias_domains.j2
+ 1
- 1
templates/main.cf.j2
View File
@@ -44,7 +44,7 @@ smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
### transport configuration
#
transport_maps = hash:/etc/postfix/transport
transport_maps = hash:/etc/postfix/transport
_maps
### rules and restricitons
+ 7
- 0
templates/transport_maps.j2
View File
@@ -0,0 +1,7 @@
{{ansible_managed|comment}}
{% if postfix_transport_maps is defined %}
{% for m in postfix_transport_maps %}
{{m.domain}} {{m.transport}}
{% endfor %}
{% endif %}
Write
Preview
Loading…
Cancel
Save