Ansible Documentation is a wonderful place. Did you try searching for the solution? Try the following doc, it has got all the scenarios. https://docs.ansible.com/ansible/latest/user_guide/vault.html
You can use group vars directory and create yml files with group names with encrypted credential values. *Regards,* *Ankit* On Tue, Apr 7, 2020 at 1:34 AM Ashish Sagar <[email protected]> wrote: > Hi, > > Is there anyway to only encrypt Device login/password credentials in hosts > file ? If so, Where should encryption key be saved and how to use it for > decrypt ? > > Thanks in Advace. > > -Ashish > > -- > 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/CADa6Y5bDzerbYB0RW1Cf-2vnw4721RzvZ6YqoOgeg51HUxJL0Q%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CADa6Y5bDzerbYB0RW1Cf-2vnw4721RzvZ6YqoOgeg51HUxJL0Q%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/CACecUhv%3DP2zi_4a1q6NAtZxMqyQ7wXxfQLnGUcsKqjNWZYm0AQ%40mail.gmail.com.
