Ansible playbooks to automate setting up a Raspberry Pi
- Fill out hosts file.
- Fill out vault.yml.
- Encrypt vault:
ansible-vault encrypt group_vars/all/vault.yml
ansible-playbook -vvKk playbooks/setup.yml
The -Kk
prompts for ssh & sudo password. This is necessary for the initial setup, as the password has not yet been set to custom_user_pass
.
ansible-playbook -vv playbooks/security.yml
ansible-playbook -vv playbooks/upgrade.yml