Setup your RPI from scratch with only one command!
This repository contains Ansible tasks needed to setup the following modules on RPI:
- periodical autoupgrade
- bigger SWAP
- GIT config
- secure SSH and generate key
- ZeroTier
- pyenv
- cups and airsane for printers
- docker (also moves docker files to a USB to save storage on the internal SD card)
- personal projects
- Python (tested on 3.11.6 and Linux) on the host
- Raspberry Pi with a debian-based OS (tested on Raspberry Pi OS 64-bit bookworm and RPI 3B+). See Raspberry Pi OS Imager if you didn't install it yet.
You need to install Ansible. For that use:
pip install -r requirements.txtCopy and fill out the following files:
inventory.yml.exampleasinventory.yml- change user and hostmain.yml.exampleasmain.yml- supply missing vars, optionally comment out or edit the tasks
First debug the connection:
ansible-playbook -i inventory.yml debug.ymlIf everything works, run the full suite:
ansible-playbook -i inventory.yml main.yml -vv- Kacper Leśniara (kacper.lesniara@gmail.com)
This project is licensed under the MIT License - see the LICENSE.md file for details
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519ansible-playbook -vv \
--inventory inventory.yml \
--limit pi5madse \
--extra-vars @config.yml \
main.playbook.yml
ansible-playbook -vv \
--inventory inventory.yml \
--limit pi4madse-ham \
--extra-vars @config.yml \
main.playbook.yml
ansible-playbook -vv \
--inventory inventory.yml \
--extra-vars @config.yml \
main.playbook.yml