Login/Password encryption in host file

53 views
Skip to first unread message

Ashish Sagar

unread,
Apr 6, 2020, 4:05:07 PM4/6/20
to ansible...@googlegroups.com
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

Ankit Vashistha

unread,
Apr 14, 2020, 8:49:22 AM4/14/20
to Ansible Project
Ansible Documentation is a wonderful place. Did you try searching for the solution? Try the following doc, it has got all the scenarios.

You can use group vars directory and create yml files with group names with encrypted credential values.

Regards,
Ankit


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

David Foley

unread,
Apr 14, 2020, 7:20:44 PM4/14/20
to Ansible Project

You could use vault / hash or shadow your password and use that hashed value. Or you could add you job to a CI/CD pipeline add your credentials into that pipeline which will be hashed out on Stdout
Reply all
Reply to author
Forward
0 new messages