From 509f53454275bd445452db54808be5b4eed86610 Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Fri, 16 May 2025 10:31:44 +0000 Subject: [PATCH] Add shutdown playbook. --- shutdown.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 shutdown.yaml diff --git a/shutdown.yaml b/shutdown.yaml new file mode 100644 index 0000000..fcaf92f --- /dev/null +++ b/shutdown.yaml @@ -0,0 +1,9 @@ +--- +# This playbook does a shutdown +- name: Shutdown system + hosts: all + gather_facts: true + + tasks: + - name: Shutdown nas + ansible.builtin.shell: sudo shutdown -h 1 \ No newline at end of file