Ansible Playbook Language
Playbook, role, task, handler, idempotency — core Ansible vocabulary for infrastructure automation. Intermediate
0 / 5 completed
1 / 5
An Ansible playbook run completes with the following summary:
PLAY RECAP: webserver01 : ok=8 changed=5 unreachable=0 failed=1 skipped=2 rescued=0
What does "changed=5" indicate?
Ansible reports a distinct outcome for every task execution. Understanding the PLAY RECAP counters is essential for interpreting automation results:
| Counter | Meaning | Example |
|---|---|---|
| ok | Task ran, system already in desired state — no change made | Package already installed |
| changed | Task ran and modified the system | Config file was updated, service was restarted |
| failed | Task encountered an error and aborted | Non-zero exit code from a shell command |
| skipped | Task was skipped — when: condition evaluated to false | Deploy task skipped because target is already at latest version |
| unreachable | SSH connection to host failed | Host is down or firewalled |
Idempotency health check: Run the same playbook twice. If the second run shows changed=0, your playbook is idempotent — it only changes what needs to change.