Or, I guess is it possible to have it pull from a file to avoid having to
use the --vault-id command in my ad hoc?


On Wed, Nov 1, 2017 at 12:10 PM, Larry Pescatore <[email protected]>
wrote:

> Oleg, thanks.
> So, would I put 'vault-id /ansible/vault/file' in the hosts file?
> Because right now, the password is there in the hosts file in the vars.
> If I encrypt the hosts file, ping fails.
>
> On Wed, Nov 1, 2017 at 2:44 AM, 'Oleg Gerasymchuk' via Ansible Project <
> [email protected]> wrote:
>
>> 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 <https://protonmail.com> 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
>> From: [email protected]
>> To: Ansible Project <[email protected]>
>>
>> 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 [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/ms
>> gid/ansible-project/da3d9dfa-dc89-4985-9e6c-f45a225b0290%
>> 40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/da3d9dfa-dc89-4985-9e6c-f45a225b0290%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Ansible Project" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/ansible-project/CgScI2GTmlo/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/ms
>> gid/ansible-project/Go7pTdv9f9GLUZzgvCy2lxDWOtC7e-zaHJ1qWolk
>> D67jcN-bXDuQVVMUd3gSqxcAAjMj-acuqcld2IqGY3Yq63E6M0UwNIKq8uKY
>> 024gbVY%3D%40protonmail.com
>> <https://groups.google.com/d/msgid/ansible-project/Go7pTdv9f9GLUZzgvCy2lxDWOtC7e-zaHJ1qWolkD67jcN-bXDuQVVMUd3gSqxcAAjMj-acuqcld2IqGY3Yq63E6M0UwNIKq8uKY024gbVY%3D%40protonmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Thank you,
> Larry Pescatore
> Lab Engineer, ERG Inc. @ Google
>



-- 
Thank you,
Larry Pescatore
Lab Engineer, ERG Inc. @ Google

-- 
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/CADxK1kuqb9uEFpCsuDoqMQaviZHQKO63eMjz-h5Jy4T%2BBh0eiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to