Add playbook for fully shutting down a host
This commit is contained in:
		
							
								
								
									
										9
									
								
								playbooks/node-poweroff.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								playbooks/node-poweroff.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
---
 | 
			
		||||
- ansible.builtin.import_playbook: node-down.yaml
 | 
			
		||||
 | 
			
		||||
- name: Shutdown node
 | 
			
		||||
  hosts: "{{ node }}"
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Shutdown node
 | 
			
		||||
      become: true
 | 
			
		||||
      community.general.shutdown:
 | 
			
		||||
		Reference in New Issue
	
	Block a user