From 8b25c6edf9c4338f96cf4dde4211c51f8ab78a3f Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Wed, 31 Aug 2022 13:40:39 +0200 Subject: [PATCH] Add halt.yaml to shutdown all machines --- halt.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 halt.yaml diff --git a/halt.yaml b/halt.yaml new file mode 100644 index 0000000..0cc10fb --- /dev/null +++ b/halt.yaml @@ -0,0 +1,8 @@ +- name: Shutdown all machines + hosts: all + user: administrator + become: true + + tasks: + - name: Unconditionally shut down the machine with all defaults + community.general.shutdown: