Linux Automation Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=5662
Answer
Linux Automation Troubleshooting isolates failures across scope, transport, privilege, environment, dependencies, package/file/service mutation and workload verification without broad retries or manual drift.
Remember
- Last red task ≠ root cause.
- Retry success ≠ cause understood.
- Automation failure ≠ Linux platform failure, and Linux failure ≠ automation failure.
- Changed symptom ≠ original workload restored.
First checks
ansible-playbook site.yml -vvv --limit <host>— verbose runssh -vvv <host>— SSH debugjournalctl -u <svc> -b— service logs
Commands
systemctl --failed- Read current System & Service Management state for a bounded verification step.
sudo -n truejournalctl -xe
Verify in this order
controller → SSH → become → module → result
Where it usually breaks
Troubleshooting closes only when the first failed boundary is explained and both automation and original Linux acceptance tests pass after a controlled correction.
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Linux Automation Troubleshooting 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=5662