Add playbook for fully shutting down a host
This commit is contained in:
parent
7ea4d070ee
commit
9e0c0505b3
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