Home » RedHat » EX407 » Why is it important to create a namespace for role variables?
Why is it important to create a namespace for role variables?
A. Roles only have access to variables in their own namespace.
B. It is not really important.
C. Ansible requires namespaces to be set for a role and will error without them.
D. Namespacing role variables helps avoid conflicts with variables defined outside of the role.
Correct Answer: D
Explanation/Reference:
Explanation:
Because roles share variables and because plays can have variables defined outside of the role, namespacing role variables ensures that you are getting the variable you expect to get.
Download Printable PDF. VALID exam to help you PASS.
|
|