Added shutdown function. Added FQCN to reboot playbook
This commit is contained in:
parent
dcab91fd63
commit
38d7b9c220
@ -9,6 +9,6 @@
|
|||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: Rebooting...
|
- name: Rebooting...
|
||||||
reboot:
|
ansible.builtin.reboot:
|
||||||
msg: "Reboot initiated by Ansible"
|
msg: "Reboot initiated by Ansible"
|
||||||
test_command: uptime
|
test_command: uptime
|
||||||
|
|||||||
13
home_linux/shutdown.yml
Normal file
13
home_linux/shutdown.yml
Normal 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"
|
||||||
Loading…
Reference in New Issue
Block a user