https://ubuntu.com/tutorials/how-to-install-ubuntu-on-your-raspberry-pi#1-overview
ansible-galaxy install -r requirements.yaml
ansible all -a 'hostname' -i hosts.yaml
ansible-playbook playbook.yaml --check
ansible-playbook playbook.yaml
This looks something like:
objc[84723]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[84723]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
Try with export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
This looks something like:
fatal: [10.1.1.20]: FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'url'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Received HTTP error for https://github.com/prometheus/prometheus/releases/download/v2.23.0/sha256sums.txt : HTTP Error 400: Bad Request"}
Make sure your netrc does not contain GitHub... E.g. via:
unset NETRC
ansible-playbook playbook.yaml
# Or just for the command:
NETRC= ansible-playbook playbook.yaml
docker run --rm -it -v $PWD:/playbook -v $HOME/.ssh:/root/.ssh -w /playbook --entrypoint bash python:3.9-buster
pip install -r python-requirements.txt
ansible-galaxy install -r requirements.yaml
ansible-playbook playbook.yaml
- Move Roles out of repo
- Write tests for roles
- Generate script for secrets