Added shutdown function. Added FQCN to reboot playbook

This commit is contained in:
VR 2022-10-19 16:34:54 +01:00
parent dcab91fd63
commit 38d7b9c220
2 changed files with 14 additions and 1 deletions

View File

@ -9,6 +9,6 @@
tasks:
- name: Rebooting...
reboot:
ansible.builtin.reboot:
msg: "Reboot initiated by Ansible"
test_command: uptime

13
home_linux/shutdown.yml Normal file
View File

@ -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"