Automation · Drift Management
Drift Detection
Cheat sheet · https://pcornel.dk/topic.php?topic=6008
Answer
Drift detection in drift management runs scheduled comparisons — terraform plan, Ansible check mode, GitOps diff, config backups compared in Git — and flags any differences.
Remember
- Use terraform plan, check mode or GitOps diff to detect drift.
- Run detection on a schedule.
- Alert when drift is found.
First checks
ansible-playbook site.yml --check --diff— CM driftterraform plan -refresh-only— IaC driftargocd app list | grep OutOfSync— GitOps drift
Verify in this order
schedule → compare → drift findings
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6008