Definition
What it is
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.
Why it matters
Configuration management tools live or die by their bootstrap cost. An agent-based tool needs a running daemon on every managed host: installation, key distribution, upgrade cycles, monitoring. An agentless tool needs a key and a Python interpreter, which most Linux hosts already have. The bootstrap difference compounds across a fleet: a hundred hosts is a morning of work with an agent-based tool and an afternoon with Ansible; ten thousand hosts is a both, but the operational surface area of Ansible stays smaller.
The second reason is legibility. YAML is not a great programming language, but it is a great configuration language. Non-developers can read a playbook, review a change, and understand what it does. This matters in regulated industries and in organisations where automation is written by operators rather than by software engineers.
The third reason is reach. Ansible integrates with more than 3,000 modules across cloud providers, network devices, databases, operating systems and SaaS platforms (Red Hat, 2024). The breadth is a consequence of the module protocol being simple enough that any Python developer can contribute one.
How it works
The core components are four:
- Inventory. A YAML file or dynamic plugin listing managed hosts, grouped by role, region, environment or any other attribute. Inventories can also come from cloud APIs (AWS EC2, GCP, Azure) or from CMDBs.
- Playbook. A YAML file with one or more plays. Each play targets a group, applies variables and runs tasks in order.
- Module. A Python script that implements one operation (
apt,systemd,user,docker_container,aws_s3_bucket). Modules are idempotent by convention. - Role. A reusable bundle of tasks, handlers, variables, templates and files, published to Ansible Galaxy or kept in a private repository.
The transport is SSH for Linux and Unix hosts, WinRM or PowerShell remoting for Windows hosts. HTTPS is used only to fetch roles from Galaxy or to reach the automation controller API. There is no proprietary protocol between control node and managed host; it is stock SSH.
Ansible Vault encrypts sensitive variables (passwords, API keys, certificates) at rest, and decrypts them only in memory when a playbook runs. The vault key can be supplied interactively, from a file, or from a secret manager.
The commercial layer is Red Hat Ansible Automation Platform, which bundles the ansible-core engine with the Automation Controller (formerly Ansible Tower), a web UI for job scheduling, role-based access, and a REST API for integration with CI/CD pipelines.
Common failures
The first failure is treating YAML as a programming language. Loops, conditionals and error handling exist, but they are deliberately limited. When a playbook needs real logic, the right answer is a custom module, not a 400-line block of Jinja2 conditionals.
The second failure is hardcoding secrets. Passwords in group_vars/*.yml end up in git, then in backups, then in someone's laptop. Ansible Vault, HashiCorp Vault via the community.hashi_vault collection, or external secret managers are the correct place.
The third failure is bypassing modules with command or shell. Both run any binary, both are non-idempotent by default, and both bypass Ansible's change detection. They are legitimate for one-off migrations; they are not legitimate for persistent configuration.
A fourth, subtler failure is version drift. Ansible-core releases frequently, collections release independently, and a playbook that worked in 2023 may fail in 2025 because a module changed its return schema. Pinning versions in requirements.yml is the mitigation.
Origin
The word "ansible" was coined by Ursula K. Le Guin in Rocannon's World (1966) to describe a device that communicates faster than light across interstellar distances. Orson Scott Card popularised it in Ender's Game (1985). Michael DeHaan, who had previously created the Cobbler provisioning tool, chose the name for his new configuration management project as a nod to that science-fiction lineage.
The project was released as open source in 2012. In 2013 DeHaan co-founded AnsibleWorks with Said Ziouani and Tim Gerla to provide commercial support and a web UI. In October 2015 Red Hat announced it would acquire Ansible for approximately USD 150 million, and the acquisition closed the following month (Red Hat, 2015). In 2019 IBM completed its acquisition of Red Hat, so Ansible is now owned by IBM through the Red Hat subsidiary.
The commercial UI changed names twice. In 2020, "Ansible Tower" was rebranded "Automation Controller" as part of the Ansible Automation Platform 1.0 launch. The engine itself, ansible-core, remained open source under GPLv3+.
Ansible is the simplest way to automate apps and IT infrastructure. Application Deployment + Configuration Management + Continuous Delivery.
— Michael DeHaan, creator of Ansible, project tagline, 2013
Evidence
FAQ
- Why agentless and not agent-based?
Agentless reduces the bootstrap cost: no software to pre-install, no daemon to monitor, no version skew between agent and server. The trade-off is speed at scale and the inability to enforce state continuously between runs.
- Is YAML a real programming language?
No. YAML is a serialization format. Ansible adds templating (Jinja2), conditionals (
when:), loops (with_items) and error handling (block/rescue), but the language remains declarative. Real logic belongs in custom modules written in Python.- Ansible vs Chef vs Puppet vs Salt?
All four manage configuration; they differ in transport (push over SSH vs pull over agents), language (YAML vs Ruby DSL vs Puppet DSL vs YAML/Python) and ecosystem. Ansible wins on bootstrap simplicity; Puppet and Chef win on large-fleet continuous enforcement; Salt wins on speed.
- Where do secrets go?
Never in the playbook, never in
group_varsin plain text. Use Ansible Vault for at-rest encryption, or integrate HashiCorp Vault, AWS Secrets Manager or Azure Key Vault via collections. The commercial Automation Platform adds credential management with audit trails.- What is the licence?
ansible-coreis GPLv3+. Most collections and roles on Galaxy have their own licences (Apache 2.0, MIT, GPL variants). Ansible Automation Platform is a paid Red Hat subscription with support.
Pros and cons
Pros
- Agentless: only SSH and Python are required on managed hosts.
- YAML playbooks readable by operators, reviewers and auditors.
- 3,000+ modules across cloud, network, OS and SaaS.
- Idempotent modules by convention, with explicit change detection.
- Free and open source core (GPLv3+); commercial support available.
Cons
- SSH-based execution does not scale as well as agent-based polling for very large fleets.
- YAML + Jinja2 becomes hard to maintain when playbooks grow beyond a few hundred lines.
- No continuous state enforcement between runs (unlike Puppet or Chef in daemon mode).
- Windows support (via WinRM) is functional but less mature than Linux support.
- Rebranding churn (Tower → Automation Controller → Automation Platform) confuses documentation and tutorials.
Key numbers
Timeline
1966 — Le Guin publishes Rocannon's World, coining "ansible".
1985 — Card publishes Ender's Game, popularising the term.
2012 — Michael DeHaan releases Ansible 0.0.1.
2013 — AnsibleWorks founded; Ansible Galaxy launches.
2015 — Red Hat announces and closes acquisition of Ansible.
2018 — IBM announces intent to acquire Red Hat for USD 34 billion.
2019 — IBM completes Red Hat acquisition.
2020 — Ansible Automation Platform 1.0; Tower becomes Automation Controller.
2024 — Ansible community package split from
ansible-core.
Entities
Products and organisations in the Ansible story
| nombre | tipo | rol | url | estado |
|---|---|---|---|---|
| Ansible | proyecto | motor open source agentless | https://github.com/ansible/ansible | activo |
| Red Hat | empresa | dueño desde 2015 | https://redhat.com | activo |
| IBM | empresa | dueño de Red Hat desde 2019 | https://ibm.com | activo |
| Michael DeHaan | persona | creador de Ansible | https://github.com/mpdehaan | activo |
| AnsibleWorks | empresa | soporte comercial 2013-2015 | (histórica) | histórico |
| Ansible Galaxy | comunidad | repositorio de roles y colecciones | https://galaxy.ansible.com | activo |
| Ansible Automation Platform | producto | plataforma comercial de Red Hat | https://redhat.com/en/technologies/management/ansible | activo |
| Ansible Vault | componente | cifrado de secretos | https://docs.ansible.com/ansible/latest/vault_guide/ | activo |
Learning path
Progression from beginner to expert
Prerequisite
infrastructure-as-code, configuration-management, ssh
This term
You are here: ansible.
Next
ansible-playbook, ansible-role, ansible-inventory, ansible-vault, packer
Connections
- infrastructure-as-code
- configuration-management
- ansible-playbook
- ansible-role
- ansible-inventory
- chef
- puppet
- saltstack
Sources
Red Hat (2015). Red Hat to Acquire Ansible. https://www.redhat.com/en/about/press-releases/red-hat-acquire-ansible
Red Hat (2024). Ansible Automation Platform documentation. https://docs.ansible.com/
Ansible community (2024). ansible/ansible on GitHub. https://github.com/ansible/ansible
Ansible community (2024). Ansible Galaxy. https://galaxy.ansible.com/
Le Guin, U. K. (1966). Rocannon's World. Ace Books.
Etymology
Origin: borrowed
ansible(noun): coined by Ursula K. Le Guin (1966) for a faster-than-light communication device; chosen by Michael DeHaan as the project name
Semantic network
● broader ● narrower ● related
Broader
configuration-management- Infrastructure as Code
Related
ansible-playbookansible-roleansible-inventorychefpuppetsaltstack
Used in the garden
- Master Linux Automation: Bash Scripting Secrets for Solo IT Founders (1×)
- Mastering Database Schema Version Control: The DevOps Secret Weapon (1×)
Sources
Red Hat (2015). Red Hat to Acquire Ansible. https://www.redhat.com/en/about/press-releases/red-hat-acquire-ansible
Red Hat (2024). Ansible Automation Platform documentation. https://docs.ansible.com/
Ansible community (2024). ansible/ansible on GitHub. https://github.com/ansible/ansible
Ansible community (2024). Ansible Galaxy. https://galaxy.ansible.com/
Le Guin, U. K. (1966). Rocannon's World. Ace Books.