[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:
Mathieu Trossevin 2020-06-19 13:29:30 +02:00
parent dc5d206488
commit 119e134373
Signed by: mtrossevin
GPG key ID: 81987323AE7F3E99
3 changed files with 9 additions and 8 deletions

View file

@ -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', '<')

View file

@ -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 }

View file

@ -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