Cisco Enterprise Network Core Technologies (ENCOR) 2025 – 400 Free Practice Questions to Pass the Exam

Question: 1 / 400

In an Ansible setup, what are the playbooks written in?

Python

YAML

Playbooks in an Ansible setup are indeed written in YAML (YAML Ain't Markup Language). This choice is correct because YAML provides a simple and human-readable way to define the automation tasks and configurations required to manage infrastructure.

YAML's structure is based on indentation, which allows for clear and concise representation of data, making it easier for users to read and write configuration files. The syntax supports defining plays, which are sets of instructions that are executed on a group of hosts, as well as tasks and any necessary parameters or variables.

While Python is used extensively behind the scenes in Ansible for the implementation of various modules and plugins, the user-facing configuration in playbooks is specifically designed to use YAML. XML, although a markup language that can represent data, is much more verbose than YAML and isn't as user-friendly for defining automation tasks. Bash scripts, on the other hand, are command-line scripts for UNIX-based systems and do not provide the structured format that YAML does for configuration management in Ansible. Therefore, YAML stands out as the most suitable format for writing playbooks in Ansible.

Get further explanation with Examzify DeepDiveBeta

XML

Bash

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy