playbook for rebooting rpis
This commit is contained in:
2
ansible.cfg
Normal file
2
ansible.cfg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[defaults]
|
||||||
|
inventory=inventory
|
||||||
18
inventory
Normal file
18
inventory
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
|
||||||
|
[rpi:children]
|
||||||
|
rpi_rpios
|
||||||
|
rpi_ubuntu
|
||||||
|
|
||||||
|
[rpi_ubuntu]
|
||||||
|
piprint ansible_host=192.168.2.95
|
||||||
|
|
||||||
|
[rpi_ubuntu:vars]
|
||||||
|
ansible_user=ubuntu
|
||||||
|
|
||||||
|
[rpi_rpios]
|
||||||
|
octopi ansible_host=192.168.2.99
|
||||||
|
pihole ansible_host=192.168.2.20
|
||||||
|
naspi ansible_host=192.168.2.75
|
||||||
|
|
||||||
|
[rpi_rpios:vars]
|
||||||
|
ansible_user=pi
|
||||||
6
playbooks/reboot_pis.yml
Normal file
6
playbooks/reboot_pis.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
- hosts: rpi
|
||||||
|
tasks:
|
||||||
|
- name: Rebooting
|
||||||
|
become: yes
|
||||||
|
reboot:
|
||||||
|
reboot_timeout: 600
|
||||||
Reference in New Issue
Block a user