arreglando bugs

This commit is contained in:
Mauro Torrez
2019-08-25 21:54:19 -03:00
parent 55cdfb163d
commit ac9db2cd89
4 changed files with 70 additions and 1 deletions

18
tasks/invoke_postconf.yml Normal file
View File

@@ -0,0 +1,18 @@
---
# Invoke postconf with given arguments
# Useful for calling via include_role in other roles, using tasks_from
- name: "Postconf invocation"
postconf:
state: "{{ postfix_custom.state | default('present') }}"
parameter: "{{ postfix_custom.parameter | default('') }}"
value: "{{ postfix_custom.value | default('') }}"
service: "{{ postfix_custom.service | default('') }}"
type: "{{ postfix_custom.type | default('') }}"
command: "{{ postfix_custom.command | default('') }}"
private: "{{ postfix_custom.private | default('') }}"
unprivileged: "{{ postfix_custom.unprivileged | default('') }}"
chroot: "{{ postfix_custom.chroot | default('') }}"
wakeup: "{{ postfix_custom.wakeup | default('') }}"
process_limit: "{{ postfix_custom.process_limit | default('') }}"
notify: reload postfix

View File

@@ -4,7 +4,7 @@
src: ldap_table.cf.j2
dest: /etc/postfix/{{ domain }}_ldap_{{ item }}.cf"
when:
- postfix_domain_config[domain][item+'_lookup'].provider|default(postfix_lookup_provider) == 'ldap'
- postfix_mail_domains[domain][item+'_lookup'].provider|default(postfix_lookup_provider) == 'ldap'
loop:
- user
- alias