valores por defecto en templates handlers

This commit is contained in:
Mauro Torrez 2019-09-08 14:23:01 -03:00
parent 0e934b1db8
commit f71ce1d16b

View File

@ -12,19 +12,28 @@
command: docker exec {{ postfix_container }} newaliases
- name: postmap hash aliases
command: "docker exec {{ postfix_container }} postmap hash:{{ postfix_mail_domains[item].alias_lookup.file }}"
command: >-
docker exec {{ postfix_container }} postmap
hash:{{ postfix_mail_domains[item].alias_lookup.file | default(
'/etc/postfix/'+item+'_aliases') }}
when:
- postfix_mail_domains[item].alias_lookup.provider|default(postfix_lookup_provider) == 'file'
loop: "{{ postfix_mail_domains.keys()|list }}"
- name: postmap hash users
command: "docker exec {{ postfix_container }} postmap hash:{{ postfix_mail_domains[item].user_lookup.file }}"
command: >-
docker exec {{ postfix_container }} postmap
hash:{{ postfix_mail_domains[item]..user_lookup.file | default(
'/etc/postfix/'+item+'_users') }}
when:
- postfix_mail_domains[item].user_lookup.provider|default(postfix_lookup_provider) == 'file'
loop: "{{ postfix_mail_domains.keys()|list }}"
- name: postmap no reply aliases
command: "docker exec {{ postfix_container }} postmap hash:{{ postfix_mail_domains[item].noreply_file }}"
command: >-
docker exec {{ postfix_container }} postmap
hash:{{ postfix_mail_domains[item].noreply_file | default(
'/etc/postfix/'+item+'_noreply') }}
loop: "{{ postfix_mail_domains.keys()|list }}"
- name: postmap access lists