Moved healthcheck to the end so that it is setup after email configuration

This commit is contained in:
Kevin Veen-Birkenbach 2025-08-19 09:46:12 +02:00
parent d3cc187c3b
commit f46aabe884
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
3 changed files with 8 additions and 6 deletions

View File

@ -1,7 +1,4 @@
- include_role:
name: sys-ctl-hlth-msmtp
when: run_once_sys_ctl_hlth_msmtp is not defined
- name: install msmtp msmtp-mta
community.general.pacman:
name:
@ -14,3 +11,7 @@
src: "msmtprc.conf.j2"
dest: "/root/.msmtprc"
mode: 600
- include_role:
name: sys-ctl-hlth-msmtp
when: run_once_sys_ctl_hlth_msmtp is not defined

View File

@ -10,11 +10,11 @@ tls_trust_file /etc/ssl/certs/ca-certificates.crt
tls off
{% endif %}
account system_email
account {{ DEFAULT_EMAIL_ACCOUNT }}
host {{ SYSTEM_EMAIL.HOST }}
port {{ SYSTEM_EMAIL.PORT }}
from {{ users['no-reply'].email }}
user {{ users['no-reply'].email }}
password {{ users['no-reply'].mailu_token }}
account default : system_email
account default : {{ DEFAULT_EMAIL_ACCOUNT }}

View File

@ -0,0 +1 @@
DEFAULT_EMAIL_ACCOUNT: "{{ SOFTWARE_NAME | replace('.', '_') | lower }}__default_email_account"