An Ansible playbook for provisioning a Raspberry Pi to display the output of a Raspberry Pi HQ Camera Module on boot.
- A Raspberry Pi (we used a 4GB Raspberry Pi 4 Model B)
- A monitor
- Ansible
- Write Raspberry Pi OS Lite to SD card
- Add an empty file named
ssh
to the root of the boot partition (see here) - Boot the Raspberry Pi and make sure it's connected to a wired network (you don't have to close the dialog windows, they will be closed by the playbook)
- Set the
ansible_host
variable inhosts
to the Raspberry Pi's local IP address (e.g. as seen in the bottom right of the "Welcome to Raspberry Pi" startup wizard) - Run
ssh pi@[ip-here]
to add the Raspberry Pi to the SSH known hosts - Run
ansible-playbook -i hosts setup-role.yml
- Reboot the Raspberry Pi