Enlist the differences between variable name and environment variables.
Answer / Prem Datt
Variable names are local to a play or a task in an Ansible playbook, while environment variables are global and can be accessed by any process running on the system. Variable names have scope within an Ansible playbook, while environment variables are accessible by all processes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why is ‘{{ }}’ notation used?
Can you build your own modules with ansible?
What is ansible task?
How do I handle different machines needing different user accounts or ports to log in with?
What is ansible galaxy?
What is ansible role and how are they different from the playbook?
Explain in detail about ad-hoc command?
When should I use {{ }}?
How do I handle python pathing not having a python 2.x in /usr/bin/python on a remote machine?
Compare ansible with chef.
What is the use of ansible vaults?
How can I set the path or any other environment variable for a task or entire playbook?