Bookmark this page

Summary

  • A play is an ordered list of tasks that run 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.

  • Ansible plays are idempotent, which means they avoid making any changes if they detect that the current state matches the desired final state.

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

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

  • Ansible modules are packaged into Ansible Content Collections, which are a distribution format for Ansible content that can include playbooks, roles, modules, and plug-ins.

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

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

Revision: rh294-9.0-c95c7de