Contains all infrastructure code about our architecture.
root/
|
|-----Ansible/
| | ----vars/
| | | --- vault.yml ⚠️ Must be encrypted
| | ---playbook.yml
| |
| | ---roles/
|-----Terraform/
| | ----main.tf
| | ----providers.tf
| | ----variables.tf
|
|-----ssh/
| ----id_rsa.pub
ansible vars are stocked into vars/vault.yml
[!] https://docs.ansible.com/ansible/latest/user_guide/vault.html
to encrypt the vault :
make encrypt
OR
ansible-vault encrypt vars/vault.yml
to decrypt the vault :
make decrypt
OR
ansible-vault decrypt vars/vault.yml
in ansible/
to deploy :
make deploy