Simplify the conditionals.
This commit is contained in:
parent
eb023ffecf
commit
3d2e3a5c31
|
|
@ -1,9 +1,7 @@
|
|||
---
|
||||
- import_tasks: smtp-common-packages.yml
|
||||
- import_tasks: smtp-sasl-auth.yml
|
||||
when:
|
||||
- postfix_use_sasl_auth
|
||||
- postfix_relay_client
|
||||
when: postfix_relay_client
|
||||
- import_tasks: postfix-relay-server.yml
|
||||
when: postfix_relay_server
|
||||
- import_tasks: postfix-letsencrypt-hook.yml
|
||||
|
|
|
|||
|
|
@ -7,5 +7,7 @@
|
|||
|
||||
- name: Update SASL hash
|
||||
shell: postmap hash:/etc/postfix/sasl_passwd
|
||||
when: update_sasl_hash is changed
|
||||
when:
|
||||
- update_sasl_hash is defined and update_sasl_hash is changed
|
||||
- postfix_use_sasl_auth
|
||||
tags: postfix-relay
|
||||
|
|
|
|||
Loading…
Reference in New Issue