playbook for rebooting rpis

This commit is contained in:
Krumel
2021-05-14 16:08:09 +02:00
parent 992f0e6ded
commit 23824c0d52
3 changed files with 26 additions and 0 deletions

2
ansible.cfg Normal file
View File

@ -0,0 +1,2 @@
[defaults]
inventory=inventory

18
inventory Normal file
View 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
View File

@ -0,0 +1,6 @@
- hosts: rpi
tasks:
- name: Rebooting
become: yes
reboot:
reboot_timeout: 600