Initial setup of a Raspberry Pi with Ansible
I install Raspberry Pi OS using Raspberry Pi Imager
$ sudo apt install rpi-imager
shift+ctrl+x
for an advance options and setup:
- hostname
- disable overscan
- authorized_keys
- username and password
- wifi
- locale
- keyboard layout
- skip first-run wizard
$ ssh-copy-id -i ~/.ssh/ansible.pub rpi.ip.address
$ ansible-playbook run.yml
LCD-show for 3.5inch RPi Display
$ cd tasks
$ ansible-playbook lcd.yml
Created by @ctarx - feel free to contact me!