These are Ansible templates for deploying various things in a single node vm.
- Use the
hosts.yml
file as reference when configuring the environment variables of the app. - Run
ansible-playbook -vi playbooks/provision.yml
Ansible provides a vault functionality which allows for the following actions:
- Encryption:
ansible-vault encrypt hosts.yml
- Decrypt:
ansible-vault decrypt hosts.yml
-
Forward your ssh keys. View the following link.
-
Create a
.ssh/config
file containing the following:Host <IP-ADDRESS> ForwardAgent yes
-
If you are using WSL, run the following commands:
eval $(ssh-agent) > /dev/null ssh-add ~/.ssh/id_rsa >& /dev/null