Bookmark this page

Summary

In this chapter, you learned:

  • A play is an ordered list of tasks, which runs against hosts selected from the inventory.

  • A playbook is a text file that contains a list of one or more plays to run in order.

  • Ansible Playbooks are written in YAML format.

  • YAML files are structured using space indentation to represent the data hierarchy.

  • Tasks are implemented using standardized code packaged as Ansible modules.

  • The ansible-doc command can list installed modules, and provide documentation and example code snippets of how to use them in playbooks.

  • The ansible-playbook command is used to verify playbook syntax and run playbooks.

Revision: rh294-8.4-9cb53f0