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=yourpasswordDon'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_rpi4.yml -i hosts --execution-environment-image ghcr.io/ansible-community/community-ee-base:latest --pull-policy missing -m stdout --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
https://pimylifeup.com/raspberry-pi-plex-server/
NOTE: this is in the ansible playbook. However keeping here for reference if needed later.
Use lsusb and lsblk to find out where the drive is being seen
sudo mount -t exfat /dev/sda2 /media/mediaplus
df -h
assuming drive is located in /dev/sda2
sudo umount /dev/sda2

