Skip to content

Simple Ansible Automation for Raspberry Pi cluster - For Beginner users

License

Notifications You must be signed in to change notification settings

deepaksks/rpiclusteransible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rpiclusteroperationautomation

Very simple Ansible playbooks to manage the Raspberry PI clsuter nodes (Reboot, Shutdown, Update, Upgrade and Temperature monitoring) remotly from the master node.

Prerequisite

Steps to run the Playbook

Clone the repository

Clone this repository to your master or monitoring node

git clone https://github.com/deepaksks/rpiclusteroperationautomation.git

Edit the host file

Update the password for the PI's and IP addresses of the Pi's running in the cluster

To run a playbook

Shutdown

Executing the below playbook will Shutdown all the Raspberry PI's in the cluster

ansible-playbook playbooks/shutdownnodes.yml -i hosts

Reboot

Executing the below playbook will Reboot all the Raspberry PI's in the cluster

ansible-playbook playbooks/rebootnodes.yml -i hosts

Temperature Monitoring

Executing the below playbook will dislay the temperature of all the Raspberry PI's in the cluster

ansible-playbook playbooks/monitornodetemp.yml -i hosts