0Pricing
Ansible Academy · Lesson

YAML Syntax You Need for Ansible

Indentation, lists and key-value mappings.

Playbooks Are Just YAML

Every Ansible playbook is written in YAML, a plain-text format built to be easy for humans to read and write.

Documents Start With ---

A YAML file usually opens with three dashes. This --- marks the start of the document, and Ansible expects to see it.

---
# my first playbook below this line

All lessons in this course

  1. YAML Syntax You Need for Ansible
  2. From Ad-Hoc to a Repeatable Playbook
  3. Run It with ansible-playbook
  4. Install Nginx in Five Lines
← Back to Ansible Academy