Sobes.tech
Junior — Middle

What language are Ansible playbook scenarios described in?

sobes.tech AI

Answer from AI

Ansible playbook scenarios are described in YAML (YAML Ain't Markup Language). YAML is a human-readable data serialization format that allows structuring tasks, hosts, variables, and other parameters as hierarchical lists and dictionaries.

Example of a simple playbook in YAML:

- hosts: webservers
  tasks:
    - name: Install nginx
      apt:
        name: nginx
        state: present