ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 305 - DOP-C01 discussion

Report
Export

If a variable is assigned in the `vars' section of a playbook, where is the proper place to override that variable?

A.
Inventory group var
Answers
A.
Inventory group var
B.
playbook host_vars
Answers
B.
playbook host_vars
C.
role defaults
Answers
C.
role defaults
D.
extra vars
Answers
D.
extra vars
Suggested answer: D

Explanation:

In Ansible's variable precedence, the highest precedence is the extra vars option on the command line.

Reference: http://docs.ansible.com/ansible/playbooks_variables.html#variable-precedence-where-should-iput-a-variable

asked 16/09/2024
Slawomir Kucharski
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first