This commit is contained in:
Vlad R 2022-12-16 14:42:21 +00:00
commit a1a0a6309c
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"