TechnologyAutomation tool

Ansible

Open-source, agentless automation tool that configures servers, deploys software and orchestrates IT tasks using YAML playbooks run over SSH.

Ansible is an open-source automation tool for configuration management, application deployment and orchestration of IT tasks. Administrators describe the desired state of systems in playbooks, which are YAML files listing tasks to run against groups of hosts defined in an inventory. Ansible is agentless: rather than requiring a resident program on each managed machine, it connects over SSH (or WinRM for Windows hosts), copies small modules across, runs them and removes them.

Michael DeHaan created Ansible and released it in 2012, and the company formed around it was acquired by Red Hat in 2015. Its building blocks are modules, small units that each manage one kind of resource such as a package, file, service or user account. Most modules are designed to be idempotent, so running a playbook a second time leaves a system unchanged if it already matches the declared state. Reusable roles and collections are shared through Ansible Galaxy, and Red Hat sells a supported enterprise platform built on the open-source core.

Much of Ansible's appeal lies in its low barrier to entry: no agents to install, readable YAML and a large library of modules covering servers, network equipment and cloud services. It is often used alongside provisioning tools such as Terraform, which create infrastructure, while Ansible configures what runs on it. Critics note that complex playbooks can become hard to maintain and that push-based execution over SSH can be slower than agent-based systems at very large scale. For many administrators it is the first step into infrastructure as code practice.

Key points

  • Ansible manages hosts over SSH without installing agents, which keeps setup simple.
  • Playbooks written in YAML describe the desired state of systems as ordered tasks.
  • Idempotent modules allow the same playbook to run repeatedly without unintended changes.
  • Red Hat acquired the company behind Ansible in 2015 and offers a commercial automation platform.

Related entries

Glossary term

Discipline and tooling for establishing and maintaining a known, consistent state for systems, software and their settings over time.

Glossary term

Practice of defining and provisioning servers, networks and other infrastructure through machine-readable files rather than manual configuration.

Technology

Terraform

DevOps

Infrastructure-as-code tool from HashiCorp that provisions cloud and on-premises resources from declarative configuration files.

Glossary term

Idempotence

ProgrammingDevOps

Property of an operation that produces the same result whether it is applied once or many times, important for safe retries and automation.

Glossary term

YAML

ProgrammingDevOps

Human-readable data serialization language that uses indentation to express structure, widely used for configuration files and data exchange.

Organization

Red Hat

FOSSDevOps

American software company, part of IBM since 2019, that built a large business on open-source software such as Red Hat Enterprise Linux.

Glossary term

DevOps

DevOpsIdeas and Culture

Set of cultural practices and tools that unites software development and IT operations to deliver changes faster and more reliably.

Technology

OpenSSH

CybersecurityDevOpsFOSS

Free suite of secure networking tools based on the Secure Shell protocol, developed by the OpenBSD project and used for encrypted remote login.

Featured in guides

Referenced by

Other entries that discuss or point to Ansible.