Re: [ansible-project] vault question

23 views
Skip to first unread message
Message has been deleted

Oleg Gerasymchuk

unread,
Nov 1, 2017, 5:45:20 AM11/1/17
to ansible...@googlegroups.com
Hi. If I understand your question right, you don't want enter vault password manually when running playbook - instead of this you want take this password from file.

I'm pretty sure, that you already checked all related to it documentation, so excuse me in advance - but let me to post here link to https://docs.ansible.com/ansible/2.4/vault.html#providing-vault-passwords

I propose check this link just because new information added for 2.4 version and this probably describe our case and additional question for using from command line multiple vault passwords.
Let me know please if this helped or maybe you have further queries.



Sent with ProtonMail Secure Email.

-------- Original Message --------
Subject: [ansible-project] vault question
Local Time: October 31, 2017 6:52 PM
UTC Time: October 31, 2017 4:52 PM
To: Ansible Project <ansible...@googlegroups.com>

Hi, So What i am trying to do is have my passwords encrypted.
The problem is the hosts file wont refer to the vault. 
My files are below (with only the needed info, and passwords changed for this post):

from /ansible/hosts:

ansible_password=secret


from /ansible/hosts (tried this but it doesn't work, it's currently commented out):

ansible_password=/ansible/group_vars/vault


from /ansible/group_vars/vault(I decrypted it to display output):


vault_ansible_password: secret


So, I am obv. doing something wrong as usual. Any help is appreciated in advance!


--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages