convert two reboot tasks running on changed to handlers
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				/ Ansible Lint (push) Failing after 1m37s
				
			
		
		
	
	
		
	
		
			Some checks failed
		
		
	
	/ Ansible Lint (push) Failing after 1m37s
				
			This fixes ansible-lint no-handler complaints.
This commit is contained in:
		
					parent
					
						
							
								db02969168
							
						
					
				
			
			
				commit
				
					
						e3a29c422a
					
				
			
		
					 4 changed files with 11 additions and 10 deletions
				
			
		|  | @ -0,0 +1,3 @@ | |||
| - name: reboot the system | ||||
|   become: true | ||||
|   ansible.builtin.reboot: | ||||
|  | @ -9,7 +9,5 @@ | |||
|       ansible.builtin.apt: | ||||
|         upgrade: dist | ||||
|       register: apt_update_and_upgrade__upgrade_result | ||||
| 
 | ||||
|     - name: reboot, after package upgrade | ||||
|       ansible.builtin.reboot: | ||||
|       when: apt_update_and_upgrade__upgrade_result.changed | ||||
|       notify: | ||||
|         - reboot the system | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue