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
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
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.
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