Ansible components

  • Module - units of code providing a narrow functionality (e.g. the yum module installs packages using the yum package manager).
  • Task - execution of one module with a set of arguments.
  • Playbook - set of tasks in YAML.
  • Role - set of playbooks to be run on a group of hosts.
  • Host - a machine that Ansible will configure through SSH.
  • Inventory - definition of the hosts and variables to be used in the playbooks.

Ansible components