forked from evolix/ansible-roles
[Cleanup] php and postfix
Comparison with litteral True and False ( `var == False` ⇔ `not var` or `var is boolean and var` or ` var is sameas False` should there be a need to check if it is really a boolean that is False and not only something evaluationg to False)
This commit is contained in:
parent
dc5d206488
commit
119e134373
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
|
||||
- fail:
|
||||
- name: Check for compatibility
|
||||
fail:
|
||||
msg: only compatible with Debian >= 8
|
||||
when:
|
||||
- ansible_distribution != "Debian" or ansible_distribution_major_version is version('8', '<')
|
||||
|
|
|
@ -14,8 +14,8 @@ galaxy_info:
|
|||
- jessie
|
||||
|
||||
dependencies:
|
||||
- { role: evolix/ldap, ldap_schema: 'cn4evolix.ldif', when: postfix_packmail == True }
|
||||
- { role: evolix/spamassasin, when: postfix_packmail == True }
|
||||
- { role: evolix/clamav, when: postfix_packmail == True }
|
||||
- { role: evolix/opendkim, when: postfix_packmail == True }
|
||||
- { role: evolix/dovecot, when: postfix_packmail == True }
|
||||
- { role: evolix/ldap, ldap_schema: 'cn4evolix.ldif', when: postfix_packmail }
|
||||
- { role: evolix/spamassasin, when: postfix_packmail }
|
||||
- { role: evolix/clamav, when: postfix_packmail }
|
||||
- { role: evolix/opendkim, when: postfix_packmail }
|
||||
- { role: evolix/dovecot, when: postfix_packmail }
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
- include: common.yml
|
||||
|
||||
- include: minimal.yml
|
||||
when: postfix_packmail == False
|
||||
when: not postfix_packmail
|
||||
|
||||
- include: packmail.yml
|
||||
when: postfix_packmail == True
|
||||
when: postfix_packmail
|
||||
|
||||
- include: slow_transport.yml
|
||||
when: postfix_slow_transport_include
|
||||
|
|
Loading…
Reference in a new issue