Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
614 B

---
- name: Build a list of Zimbra domains
set_fact: wh_mail_domains={{ wh_clients | selectattr('mail', 'defined') | selectattr('mail.enabled', 'equalto', True) | selectattr('mail.domain', 'defined') | map(attribute='mail.domain') | list }}
tags: mail
- name: Build a list of Zimbra domain aliases
set_fact: wh_mail_aliases={{ wh_mail_aliases | default([]) + item.mail.domain_aliases }}
loop: "{{ wh_clients }}"
when:
- item.mail is defined
- item.mail.enabled is defined
- item.mail.enabled
- item.mail.domain_aliases is defined
- item.mail.domain_aliases | length > 0
tags: mail