playbook

A YAML file containing one or more plays, which together describe the state Ansible should bring a set of hosts to.

In more detail

Ansible runs the plays from top to bottom, and within each play runs the tasks in order on every selected host. Unlike an ad hoc command, a playbook is saved, reviewed and repeatable, so it is where any change that matters belongs. Run one with ansible-playbook.

Example

ansible-playbook site.yml

Related terms

Taught in

References

Certification courses