mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 18:29:21 +00:00 
			
		
		
		
	Moved healthcheck to the end so that it is setup after email configuration
This commit is contained in:
		| @@ -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 | ||||
| @@ -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" | ||||
		Reference in New Issue
	
	Block a user