Thank you!

On Tue, Mar 14, 2023 at 11:15 AM Will McDonald <[email protected]> wrote:

>
> https://www.digitalocean.com/community/tutorials/how-to-use-vault-to-protect-sensitive-ansible-data
> walks you through the basics with some good practices.
>
> For example:
>
> $ mkdir -p ./inventories/group_vars/all/{vars,vault}
>
> $ ansible-vault create ./inventories/group_vars/all/vault/all.yml
>
> $ ansible-vault edit ./inventories/group_vars/all/vault/all.yml
> vaulted_vcenter_username: <username>
> vaulted_vcenter_password: <password>
>
> $ vim ./inventories/group_vars/all/vars/all.yml
> vcenter_username: "{{ vaulted_vcenter_username }}"
> vcenter_password: "{{ vaulted_vcenter_password }}"
>
> Then use vcenter_username & vcenter_password in your roles or plays (with
> a .vault_pass or --ask-vault-pass as required).
>
>
> On Tue, 14 Mar 2023 at 17:26, Tony Wong <[email protected]> wrote:
>
>> can i get help on how to put my vcenter credentials
>>
>> vcenter_username
>> vcenter_password
>>
>> into a vault file and then run playbook using vault file. I dont want to
>> put the info into the pb
>>
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/f64d4585-0e60-46ca-92db-15be933d9162n%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/f64d4585-0e60-46ca-92db-15be933d9162n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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/topic/ansible-project/FeedrbmYWlg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAKtKohSyKHnU-0Ain55FesVbdEeeGJSFNVX8Jp%3DqayVawT8Ztg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAKtKohSyKHnU-0Ain55FesVbdEeeGJSFNVX8Jp%3DqayVawT8Ztg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CALmkhkqhMoC81zfTcGPJujtbv0g9upToi-JnFBVMjB-AE0SaSg%40mail.gmail.com.

Reply via email to