Using Ansible to get a Raspberry Pi 4 running Raspbian OS
https://www.raspberrypi.org/downloads/raspberry-pi-os/
Raspberry Pi OS (64-bit) Lite
Advanced OS settings menu
Set SSH to Enabled and set user and password
Add ssh environment vars
export MEDIAUSER=youruser
export MEDIAPASS=yourpassword
Don't forget to add your server to the inventory file
ansible-navigator run plex_rpi4.yml -i hosts --penv MEDIAUSER MEDIAPASS
ansible-navigator run plex_update.yml -i hosts --penv MEDIAUSER MEDIAPASS
ansible-navigator run plex_update.yml -i hosts --penv MEDIAUSER MEDIAPASS --execution-environment-image ansible-execution-env