How to create ansible-vault to playbook?
# new file
ansible-vault create uptime_vault.yaml
#you don't see the content
cat uptime_vault.yaml
#how to decrpyt
ansible-vault decrypt uptime_vault.yaml
#you see the content
cat uptime_vault.yaml
#encrypt file which exists
ansible-vault encrypt uptime_vault.yaml
# how to start playbook with asking password
ansible-playbook uptime_vault.yaml --ask-vault-pass
on gitlab: https://gitlab.com/martin.suraba/ansible-playbooks-linux-os/-/blob/main/ansible-preparation/ansible_vault_guide.txt
Žiadne komentáre:
Zverejnenie komentára