diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..a9ead99 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,2 @@ +[defaults] +inventory=inventory \ No newline at end of file diff --git a/inventory b/inventory new file mode 100644 index 0000000..4e9a014 --- /dev/null +++ b/inventory @@ -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 \ No newline at end of file diff --git a/playbooks/reboot_pis.yml b/playbooks/reboot_pis.yml new file mode 100644 index 0000000..149e7be --- /dev/null +++ b/playbooks/reboot_pis.yml @@ -0,0 +1,6 @@ +- hosts: rpi + tasks: + - name: Rebooting + become: yes + reboot: + reboot_timeout: 600 \ No newline at end of file