diff --git a/home_linux/reboot.yml b/home_linux/reboot.yml index e2dcf31..ee828a5 100644 --- a/home_linux/reboot.yml +++ b/home_linux/reboot.yml @@ -9,6 +9,6 @@ tasks: - name: Rebooting... - reboot: + ansible.builtin.reboot: msg: "Reboot initiated by Ansible" test_command: uptime diff --git a/home_linux/shutdown.yml b/home_linux/shutdown.yml new file mode 100644 index 0000000..01df0f5 --- /dev/null +++ b/home_linux/shutdown.yml @@ -0,0 +1,13 @@ +--- +- name: Shutdown the Raspberries + hosts: all + gather_facts: no + roles: + - common + become: yes + + tasks: + + - name: Shutting down... + community.general.shutdown: + msg: "Shutdown initiated by Ansible"