1 Answer

0 votes
by

Ansible vault is used to keep sensitive data such as passwords instead of placing it as plaintext in playbooks or roles. Any structured data file or any single value inside the YAML file can be encrypted by Ansible. 

To encrypt a file

ansible-vault encrypt foo.yml bar.yml baz.yml

And similarly to decrypt

ansible-vault decrypt foo.yml bar.yml baz.yml

Related questions

0 votes
    What is the difference between Ansible and Puppet?...
asked Jul 29, 2021 in Education by JackTerrance
0 votes
    Ansible can deploy to virtualization and cloud environments, Including (i)Cloud Stack (ii)Google cloud platform (iii)All the Options (iv)Amazon web services (v)Open Stack...
asked Jan 25, 2023 in Technology by JackTerrance
0 votes
    ansible.cfg should be present in _______________. (1)/etc/configurations (2)/etc/ansible (3)/etc/hosts (4)/ansible/...
asked Jul 4, 2021 by JackTerrance
0 votes
    Ansible can deploy virtualization and cloud environments, including ____________________. (1)All the options (2)Open Stack ( ... platform (4)Amazon Web Services (5)Cloud Stack...
asked Jul 4, 2021 in Education by JackTerrance
0 votes
    Using which module can you see the list of all the Ansible variables? (1)copy (2)setup (3)ping (4)fetch...
asked Jul 4, 2021 in Education by JackTerrance
0 votes
    What does the @SpringBootApplication annotation do internally?...
asked Jul 5, 2021 in Education by JackTerrance
0 votes
    The handler runs only once even if you run the Playbook many times. (1)True (2)False...
asked Jul 5, 2021 in Education by JackTerrance
0 votes
    Which configuration management software is Agentless? (1)Chef (2)Ansible (3)Puppet (4)CFEngine...
asked Jul 4, 2021 in Education by JackTerrance
0 votes
    You can use ansible-vault to store sensitive information. (1)True (2)False...
asked Jan 27, 2023 in Technology by JackTerrance
0 votes
    You can use ansible-vault to store sensitive information. (1)True (2)False...
asked Jul 4, 2021 in Technology by JackTerrance
0 votes
    What are the components of Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    What is Ansible pipelining?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    What is use of Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    How many modules are there in Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    How to keep data secret in a Ansible playbook?...
asked Jan 29, 2023 in Technology by JackTerrance
...