From 9e0c0505b329220f3434c1794c2ae36c6cae8f74 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Thu, 28 Oct 2021 00:35:31 -0400 Subject: [PATCH] Add playbook for fully shutting down a host --- playbooks/node-poweroff.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 playbooks/node-poweroff.yaml diff --git a/playbooks/node-poweroff.yaml b/playbooks/node-poweroff.yaml new file mode 100644 index 0000000..b3073b6 --- /dev/null +++ b/playbooks/node-poweroff.yaml @@ -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: