From a44af0c4853a1e83260625aa2423ef6031a0aa7b Mon Sep 17 00:00:00 2001 From: Vladimir Still <git@vstill.eu> Date: Tue, 25 Jan 2022 20:35:47 +0100 Subject: [PATCH] ansible: Mail fixes for common_deb --- ansible/roles/common_deb/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/roles/common_deb/tasks/main.yml b/ansible/roles/common_deb/tasks/main.yml index 9112e7b..e9d8a20 100644 --- a/ansible/roles/common_deb/tasks/main.yml +++ b/ansible/roles/common_deb/tasks/main.yml @@ -139,20 +139,20 @@ - restart dhcpcd when: dhcpcd -- name: '{{"Install" if postfix or mail_relay is None else "Remove"}} postfix' +- name: '{{"Install" if postfix or mail_relay is none else "Remove"}} postfix' apt: pkg: - postfix - state: '{{"present" if postfix or mail_relay is None else "absent"}}' + state: '{{"present" if postfix or mail_relay is none else "absent"}}' notify: - test mail -- name: '{{"Remove" if postfix or mail_relay is None else "Install"}} MSMTP' +- name: '{{"Remove" if postfix or mail_relay is none else "Install"}} MSMTP' apt: pkg: - msmtp - msmtp-mta - state: '{{"absent" if postfix or mail_relay is None else "present"}}' + state: '{{"absent" if postfix or mail_relay is none else "present"}}' notify: - test mail -- GitLab