Skip to content

What it is

Ansible is a Red Hat-owned, agentless configuration management and automation tool that executes YAML playbooks over SSH against a declared inventory.

Ansible is an open-source tool for configuration management, application deployment, orchestration and task automation. It reads YAML files called playbooks, resolves them against an inventory of managed hosts, and executes Python modules on those hosts over SSH. No agent runs on the managed side; only a Python interpreter and SSH access are required, which is why the official documentation describes Ansible as "agentless".

It is not a programming language in the classical sense. Playbooks declare desired state through ordered tasks; each task calls a module, and each module is written to be idempotent, meaning that re-running the task leaves the system in the same state rather than applying the same change twice. The language is YAML, deliberately chosen so that operators who are not developers can read and review the automation.

Ansible sits next to Chef, Puppet and SaltStack in the configuration management category. Its distinguishing characteristic is the push model: the control node opens an SSH connection, copies a temporary module, executes it and removes it, then closes the connection. Chef and Puppet are pull-based: an agent on each host periodically retrieves its configuration from a central server. Push is simpler to bootstrap but harder to scale; pull scales better but requires a running agent on every node.