JN0-422 · Question #46
What are two format distinctions to know when using YAML? (Choose two)
The correct answer is D. The target device was not defined in /etc/ansible/hosts on the control machine. Explanation/Reference: Because YAML is white-space sensitive and indentation is significant (not allowed), you should always use spaces rather than tabs when creating playbooks. In YAML, items preceded by a hyphen (- ) are considered list items, and the key:value notation…
Question
What are two format distinctions to know when using YAML? (Choose two)
Options
- AThe target device was not defined in /etc/ansible/inventory/hosts on the control machine
- BThe target device was not defined on the associated DNS servers
- CThe target device was not defined in /etc/hosts on the control machine
- DThe target device was not defined in /etc/ansible/hosts on the control machine
How the community answered
(26 responses)- A8% (2)
- B4% (1)
- C19% (5)
- D69% (18)
Explanation
Explanation/Reference: Because YAML is white-space sensitive and indentation is significant (not allowed), you should always use spaces rather than tabs when creating playbooks. In YAML, items preceded by a hyphen (- ) are considered list items, and the key:value notation represents a hash. Which statement is correct in this scenario? Explanation/Reference:
Topics
Community Discussion
No community discussion yet for this question.