This project is a way to familiarize myself with Ansible. The goal is to configure a Raspberry Pi with a freshly installed Raspbian Lite OS on my local network.
- Write a Raspian Lite image to the SD card. Enable SSH by placing a file named “ssh” onto the SD card’s boot partition.
- Enable Internet access on the managed Rasperry Pi (just plug an Ethernet cable in or configure the Wi-Fi credentials).
- Use
ssh-copy-id
on the control node to use PKA for SSH. - Make the Raspberry Pi’s IP static in the router settings.
Check if the Pi is accessible :
ansible -i hosts -m ping all