Pcornel
Automation · Linux Automation

Linux Automation Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=5662

Back to the Topic

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 run
  • ssh -vvv <host> — SSH debug
  • journalctl -u <svc> -b — service logs

Commands

systemctl --failed
Read current System & Service Management state for a bounded verification step.
sudo -n true
journalctl -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

BoundaryHealthy evidenceSuspicious evidence
Scope / identityExact source revision, hosts and execution identity are explicitSelector drift, stale inventory or wrong token changes scope/authority
OperationTool/provider action and per-host result are traceablePartial failure, hidden error semantics or environment differences are lost
Platform statePersistent and effective state are read backCommand/cmdlet success is mistaken for convergence
Workload proofOriginal service/application acceptance passesAutomation 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

Confirmation

Confirm action

Continue?