Ansible · Schema

Playbook

An Ansible playbook — a YAML file containing one or more plays that map a group of hosts to a set of roles and tasks.

AnsibleAutomationConfiguration ManagementDevOpsInfrastructure As CodeOpen SourceOrchestrationRed Hat

Properties

Name Type Description
name string Human-readable name for the playbook play.
hosts string Host or group pattern targeted by this play.
become boolean Whether to run tasks with privilege escalation (sudo).
become_user string User to become when privilege escalation is enabled.
gather_facts boolean Whether to gather system facts before running tasks.
vars object Variables defined at the play level.
roles array List of roles applied to hosts in this play.
tasks array List of tasks executed in this play.
handlers array Handlers triggered by task notifications.
tags array Tags for selective task execution.
View JSON Schema on GitHub