mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-26 21:45:20 +02:00
Moved healthcheck to the end so that it is setup after email configuration
This commit is contained in:
parent
d3cc187c3b
commit
f46aabe884
@ -1,6 +1,3 @@
|
||||
- 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:
|
||||
@ -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
|
@ -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 }}
|
1
roles/sys-svc-msmtp/vars/main.yml
Normal file
1
roles/sys-svc-msmtp/vars/main.yml
Normal file
@ -0,0 +1 @@
|
||||
DEFAULT_EMAIL_ACCOUNT: "{{ SOFTWARE_NAME | replace('.', '_') | lower }}__default_email_account"
|
Loading…
x
Reference in New Issue
Block a user