forked from CCCHH/ansible-infra
		
	Also use this role instead of plain ansible.builtin.reboot. This is in preparation for using ansible_pull as we don't want to have ansible.builtin.reboot fail local playbook runs.
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			394 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			394 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| - name: Reboot
 | |
|   ansible.builtin.reboot:
 | |
|   become: true
 | |
|   when: ansible_connection != "local" or reboot__local_handling == "none"
 | |
| 
 | |
| - name: Touch a reboot required file
 | |
|   ansible.builtin.file:
 | |
|     path: "{{ reboot__local_handling_file }}"
 | |
|     state: touch
 | |
|     owner: root
 | |
|     group: root
 | |
|     mode: "0644"
 | |
|   become: true
 | |
|   when: ansible_connection == "local" and reboot__local_handling == "file"
 |