Answer Posted / Shwet Prakash
Variables in Ansible are used to store data that can be reused across a playbook. They can be global (defined at the play level), host-specific (defined for each host), or task-specific (defined within a task). You can also pass variables from the command line, from inventory files, or from other playbooks.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain a few of the basic terminologies or concepts in ansible.
Talk about ansible architecture.
How do I write an ansible handler with multiple tasks?
How do I copy files recursively onto a target host?
Can you copy files recursively onto a target host? If yes, how?
How ansible different from the playbook?
What is ansible role?
How do I see all the inventory vars defined for my host?
What are ad-hoc commands?
Suppose you’re using ansible to configure the production environment and your playbook uses an encrypted file. Encrypted files prompt the user to enter passwords. But since ansible is used for automation, can this process be automated?
What is ansible and what makes it stand out from the rest of the configuration management tools?
How do I generate crypted passwords for the user module?
What is ansible galaxy?
What is ansible?
What are the different components of ansible?