I'm using Ansible to orchestrate a bunch of VM, as expected. I want to run commands as root, so I have the root password in a file in group_vars, so /etc/ansible/group_vars/vault, which I've encrypted with ansible-vault.
I understand from the Best Practices http://docs.ansible.com/ansible/playbooks_best_practices.html#best-practices-for-variables-and-vaults that I'm to use a file containing the passwords that's encrypted and then another referencing those. So I have group_vars -> vault -> vars cat vars ansible_become_user=vault_ansible_become_user ansible_become_pass=vault_ansible_become_pass And then those variables are assigned in vault. I'm totally not sure how then to use these or reference them. Any advice/guidance would be good. Thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/26a77302-dcee-48ec-9774-6dfd60f4663c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
