Very simple Ansible playbooks to manage the Raspberry PI clsuter nodes (Reboot, Shutdown, Update, Upgrade and Temperature monitoring) remotly from the master node.
- Ansible
- sshpass
Clone this repository to your master or monitoring node
git clone https://github.com/deepaksks/rpiclusteroperationautomation.git
Update the password for the PI's and IP addresses of the Pi's running in the cluster
Executing the below playbook will Shutdown all the Raspberry PI's in the cluster
ansible-playbook playbooks/shutdownnodes.yml -i hosts
Executing the below playbook will Reboot all the Raspberry PI's in the cluster
ansible-playbook playbooks/rebootnodes.yml -i hosts
Executing the below playbook will dislay the temperature of all the Raspberry PI's in the cluster
ansible-playbook playbooks/monitornodetemp.yml -i hosts