The workflow is inventory plus playbook plus modules, executed over SSH; the components are independent, which keeps each one replaceable.
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.