Scripts that perform initial setup of my machines.
python3
is required for ansible.
sudo apt install python3-dev python3-pip python3-setuptools
python3 -m pip install ansible
ansible-galaxy install -r requirements.yml
# vault is used to encrypt work info, emails
echo $VAULT_PASSWORD > pass
ansible-playbook playbook.yml --ask-become
ansible-playbook playbook.yml --ask-become --tags "all,never"
Vault secrets may require updating. Create new secrets by running:
ansible-vault encrypt_string 'secret-string' --name variable_name >> roles/vault/vars/main.yml
# clean up the old variable afterwards; this is a manual step
nano roles/vault/vars/main.yml