A set of Ansible scripts to manage a local Raspberry Pi server.
Note: you must be keyed to the .vault-pass
file to execute the playbooks.
From the project root:
# configure virtualenv
virtualenv venv
source venv/bin/activate
# install python libraries
python -m pip install --upgrade pip
pip install -r requirements.txt
# install mitogen
ANSIBLE_STRATEGY=linear ansible-playbook mitogen.yaml
# install galaxy dependencies
ansible-galaxy install -r requirements.yaml
# bootstrap nodes & configure pi server
ansible-playbook -i production pi.yaml --become
To set up local config for an existing server:
ansible-playbook -i production pi.yaml --become --tags "local" --skip-tags "pi"