352-001 · Question #722
Which markup language is used to format Ansible's playbook?
The correct answer is B. YAML. Ansible playbooks are written in YAML, a human-readable data serialization format that uses indentation-based structure to define automation tasks.
Question
Which markup language is used to format Ansible's playbook?
Options
- AADML
- BYAML
- CXML
- DHTML
- ENAML
How the community answered
(39 responses)- A5% (2)
- B90% (35)
- C3% (1)
- E3% (1)
Why each option
Ansible playbooks are written in YAML, a human-readable data serialization format that uses indentation-based structure to define automation tasks.
ADML (Administrative Template Markup Language) is a Microsoft Group Policy format and has no association with Ansible playbook authoring.
Ansible uses YAML (YAML Ain't Markup Language) as the exclusive format for playbooks and variable files because its key-value, indentation-driven syntax is both human-readable and natively parsed by the Ansible engine. All Ansible documentation and tooling expect playbook files to carry the .yml or .yaml extension and conform to valid YAML syntax.
XML is a tag-based markup language used in many configuration systems but is not the format Ansible uses for defining playbooks.
HTML is a markup language for rendering web content and is unrelated to Ansible automation playbook structure.
NAML is not a recognized standard markup language and has no defined role in the Ansible ecosystem.
Concept tested: Ansible playbook file format using YAML
Source: https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html
Topics
Community Discussion
No community discussion yet for this question.