Enlist the differences between variable name and environment variables.
Answer Posted / 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 |
Post New Answer View All Answers
Compare ansible vs puppet?
Explain a few of the basic terminologies or concepts in ansible.
What is ansible and what makes it stand out from the rest of the configuration management tools?
Write an ansible playbook to automate the starting of ec2 instance.
What is the difference between a variable name and an environment variable?
What is ansible galaxy?
What is ansible task?
Can you build your own modules with ansible?
How is ansible different from puppet?
How do I configure a jump host to access servers that I have no direct access to?
How is ansible used in a continuous delivery pipeline? Explain.
When to use {{}} ? How to interpolate variables or dynamic variable names?
How do I get ansible to reuse connections, enable kerberized ssh, or have ansible pay attention to my local ssh config file?
How can I set the path or any other environment variable for a task or entire playbook?
Explain different modules in ansible.