/ansible-raspberry-pi-os

Configure Raspberry Pi OS (RPi) using Ansible

Primary LanguageJinjaApache License 2.0Apache-2.0

ansible-raspberry-pi-os

Configure Raspbian (RPi) using Ansible

Preparation

  1. Build the Raspberry Pi OS image using create-rpi-image GitHub Action
  2. Flash the image to the SD card
  3. Boot the RPi with the SD card
    1. Initial user is pi with password raspberry
  4. Run the ansible playbook from shell script run_ansible-raspbian.sh

Notes

Decrypt variables:

cd ansible || exit
ansible localhost -m ansible.builtin.debug -a var="cloudflared_token" -e "@host_vars/raspi.xvx.cz"

Bluetooth - To connect a headset in pairing mode:

su - kodi
bluetoothctl
# power on
# pair 08:C8:C2:85:EF:57
# trust 08:C8:C2:85:EF:57
# connect 08:C8:C2:85:EF:57