- Ansible is installed
git clone https://github.com/ThomasCrowley/dotfiles ~/.dotfiles
ansible-galaxy install -r requirements.yml
We are using ansible vault to protect the secrets. First we need to add the sudo password into the vault.
First create your encrypted file
ansible-vault create secrets.yml
Write your sudo password into the file.
---
ansible_become_password: mysecretsudopasssworkd4
I am usign ansible-playbook to set up my dotfiles. To plan the changes run:
ansible-playbook playbook.yml --ask-vault-pass --check
Then to apply them run
ansible-playbook playbook.yml --ask-vault-pass