Ansible
Cheat sheet · https://pcornel.dk/topic.php?topic=5654
Answer
Ansible in Linux Automation applies the generic Ansible model specifically to Linux host configuration while preserving inventory, connection, become, module result and Linux read-back boundaries.
Remember
- Ansible reachable ≠ become works.
- Task ok/changed ≠ service behavior healthy.
- Handler ran ≠ daemon accepted its configuration.
- Idempotent rerun ≠ application acceptance.
First checks
ansible-playbook -i inventory site.yml --check --diff— previewansible-lint— lintansible <group> -m setup -a 'filter=ansible_distribution*'— facts
Verify in this order
playbook → SSH → modules → state
Where it usually breaks
Ansible task results do not replace Linux operating-state or application verification.
Inventory/vars → play/task selection → connection/become → module request → module result → target object read-back → handler/service effective state → workload verification.
Ansible automation proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Scope / identity | Exact source revision, hosts and execution identity are explicit | Selector drift, stale inventory or wrong token changes scope/authority |
| Operation | Tool/provider action and per-host result are traceable | Partial failure, hidden error semantics or environment differences are lost |
| Platform state | Persistent and effective state are read back | Command/cmdlet success is mistaken for convergence |
| Workload proof | Original service/application acceptance passes | Automation summary substitutes for actual runtime behavior |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5654