Basics for Ansibles
Ansible basics are the core ideas needed to run your first automation: a control node that runs Ansible, an inventory listing managed hosts and groups, modules that perform actions, and playbooks that bundle tasks in YAML. Ansible pushes changes over SSH and aims for idempotent results.
Stage: Getting Started · Part of the Ansible roadmap · Last reviewed 19 November 2026
What to learn in Basics
- Write an inventory file with groups and host variables
- Run an ad hoc command with the ansible CLI against a group
- Write a playbook with plays, hosts and tasks
- Explain idempotence using the apt or package module as an example
- Read playbook output to see which tasks changed, ok or failed
Basics interview questions
What does it mean that Ansible is agentless?
Managed hosts do not run any Ansible daemon. The control node connects over SSH, or WinRM for Windows, copies small module scripts, runs them, and removes them. You only need Python and SSH access on Linux targets, so there is no agent to install, update or secure.
What is idempotence in Ansible?
A task is idempotent when running it repeatedly leaves the system in the same state after the first run. A module like package checks whether the software is installed and changes nothing if it is. The play recap then reports ok instead of changed.
Where Basics fits in the Ansible roadmap
Basics belongs to the Getting Started stage (beginner level). Automate your first host.
Back to the full Ansible roadmap