diff --git a/roles/sys-svc-msmtp/tasks/01_core.yml b/roles/sys-svc-msmtp/tasks/01_core.yml index 0279b0bf..5cd3b980 100644 --- a/roles/sys-svc-msmtp/tasks/01_core.yml +++ b/roles/sys-svc-msmtp/tasks/01_core.yml @@ -19,10 +19,14 @@ when: - "'web-app-mailu' in group_names" - > - (mail_host_reachability is defined and - (mail_host_reachability.status | default(0) | int) != 200) + ( + mail_host_reachability is defined and + (mail_host_reachability.status | default(0) | int) != 200 + ) or - not (users['no-reply'].mailu_token | default(false) | bool) + ( + users['no-reply'].mailu_token | default('', true) | length == 0 + ) - name: install msmtp msmtp-mta community.general.pacman: