diff --git a/roles/postfix/tasks/main.yml b/roles/postfix/tasks/main.yml index 90b7de4f85b6ce730ef69a06572d61490c3c084a..1b74a808ba8a264a3d4788fcae090fc343eeef6f 100644 --- a/roles/postfix/tasks/main.yml +++ b/roles/postfix/tasks/main.yml @@ -73,13 +73,13 @@ - compat_maps.db - name: install extra packages for relaying via smarthost - when: postfix_relayhost + when: postfix_relayhost|bool package: name: cyrus-sasl state: present - name: install relay_passwords file - when: postfix_relayhost + when: postfix_relayhost|bool template: src: relay_passwords.j2 dest: /etc/postfix/relay_passwords @@ -91,7 +91,7 @@ - name: create user account on orion to relay with delegate_to: orion.archlinux.org - when: postfix_relayhost + when: postfix_relayhost|bool user: name: "{{inventory_hostname_short}}" comment: "SMTP Relay Account for {{inventory_hostname}}"