What are the variables in ansible?
Answer / 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 |
How does ansible work?
How can you handle different machines needing different user accounts or ports to log in with?
How to interpolate variables or dynamic variable names?
How to keep secret data in a playbook?
What is ansible role?
How do I write an ansible handler with multiple tasks?
List some advantages of using ansible.
How do I access a variable name programmatically?
What’s the use of ansible?
What is ansible role and how are they different from the playbook?
What is the best way to make content reusable/redistributable?
How to create encrypted files using ansible?