twentylemon / setup

ansible playbook for personal machine setup
0 stars 0 forks source link

setup

Scripts that perform initial setup of my machines.

install

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

run

everywhere setup

ansible-playbook playbook.yml --ask-become

work setup

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

post run