mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	• Rename: 02_create-user.yml → 02_manage_user.yml; 03_create-token.yml → 03a_manage_user_token.yml + 03b_create_user_token.yml
• Only (re)run sys-svc-msmtp when no-reply token exists; set run_once_sys_svc_msmtp=true in 01_core
• Reset by setting run_once_sys_svc_msmtp=false after creating no-reply token; then include sys-svc-msmtp
• Harden when-guards (no '{{ }}' in when, safe .get lookups)
• Minor formatting and failed_when readability
Conversation: https://chatgpt.com/share/68ebd196-a264-800f-a215-3a89d0f96c79
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			375 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			375 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| 
 | |
| - name: install msmtp msmtp-mta
 | |
|   community.general.pacman:
 | |
|     name:
 | |
|     - msmtp
 | |
|     - msmtp-mta
 | |
|     state: present
 | |
| 
 | |
| - name: configure msmtprc.conf.j2
 | |
|   template:
 | |
|     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
 | |
| 
 | |
| - set_fact:
 | |
|     run_once_sys_svc_msmtp: true |