Honest changed/failed Semantics for Commands
Control creates/changed_when/failed_when on commands that cannot be replaced by modules.
A intermediate Ansible challenge worth 10 points. Solve it hands-on in a real Ansible environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: Ticket OPS-2043 - the catalogue service restarts on every run, a 40-minute index rebuild runs nightly for no reason, and the play goes red whenever the health check reports its normal degraded exit code 2.
Keep the commands but fix their result semantics: report changed only on real DRIFT, skip the bootstrap once index.db exists, and accept exit code 2 as success. Then run check.