About Ansible

Ansible is a tool to automate tasks execution on remote hosts.

Table of contents


Ansible documentation

YAML Syntax

YAML syntax is used everywhere in Ansible.

Jinja2 Templates

Jinja2 engine is used for templating.

Official documentation

Ansible official documentation is a good place to start.


Ansible terminology

Inventory

An inventory defines all your hosts and groups.

Module

A module abstracts an action to run on remote hosts like file copy or package installation. Here is a list of available modules.

Task

A task uses an Ansible module to define an atomic action to run on remote hosts.

Role

A role regroups a set of related tasks.

Playbook

A playbook associates hosts or groups of hosts to corresponding roles.

Handler

An handler is a special task within a role not run directly but triggered by other tasks.

Variable

Do I really need to define what is a variable ?