Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to keep secret data in a playbook?

Answer Posted / Saumitra Singh

"Ansible provides the 'vault' feature to encrypt sensitive data, such as passwords or API keys. To use it, you can create a vault file containing your secrets and then reference them in your playbook using the 'vault' keyword. Here's an example:n[
{"name": "example_play",n "vars_files": [n "secrets.yml"n ]n }"]

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ansible galaxy?

3


What is ansible and what makes it stand out from the rest of the configuration management tools?

3


What are the ansible modules? Explain the different types.

2


How to access a variable of the first host in a group?

3


What is ansible?

2


Explain different modules in ansible.

2


How does configuration management is help an organization?

3


How do I disable cowsay?

2


Explain a few of the basic terminologies or concepts in ansible.

3


How do I access shell environment variables?

3


How do I access a variable name programmatically?

2


What are playbooks in ansible?

2


What is the use of ansible vaults?

3


How can looping be done over a list of hosts in a group, inside of a template?

3


What is the way to access shell environment variables in ansible?

2