- Ansible
- Vagrant
- VirtualBox
vagrant up
Run the following command:
ansible-playbook --inventory inventory/dev playbook.yaml
-
Create a file containing the required secrets changing the desired values:
echo 'smb_user: the_user\nsmb_password: the_password' > secrets
-
Create a file containting the encryption key:
echo 'superSecretVaultPassword' > vault-password
-
Encrypt the file:
ansible-vault encrypt --vault-password-file vault-password secrets
ansible-playbook --inventory inventory/prod --extra-vars @secrets --vault-password-file vault-password playbook.yaml