Answer Posted / Mohd Hilal
To keep sensitive data (like passwords, API keys, etc.) secure in an Ansible playbook, you can use the `vault` feature. To encrypt the sensitive data, run `ansible-vault encrypt <filename>`. When you want to access the encrypted data, use the command `ansible-vault decrypt <filename>` and enter the password.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can you build your own modules with ansible?
Why is ‘{{ }}’ notation used? And how can one interpolate variables or dynamic variable names?
Compare ansible vs puppet?
How can you create a lamp stack and deploy a webpage by using ansible?
How does ansible work?
Explain the concept behind infrastructure as code (iac).
How can looping be done over a list of hosts in a group, inside of a template?
How do I access a variable of the first host in a group?
Is it unsafe to bulk-set task arguments from a variable?
What is the use of ansible vaults?
How to keep secret data in playbook?
What are ansible vaults?
What are the ansible modules?
How can you speed up management inside in ec2?
What is the ask_pass module in ansible?