forked from mauro/ansible-role-postfix
arreglando bugs
This commit is contained in:
18
tasks/invoke_postconf.yml
Normal file
18
tasks/invoke_postconf.yml
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user