Interview Prep/Ansible/Performance, Testing and CI/CD

`--check` shows no change but the real run changes things. Why?

AdvancedScenarioPerformance, Testing and CI/CD
Answer

Situation read → Check mode is a prediction.

What I'd do → Look for tasks that depend on earlier skipped tasks' results, command/shell tasks skipped in check mode (so registered values are empty), and modules without check support.

Why → If task B reads a file task A would have created, B sees the old state in check mode.

Interview tip → Use check_mode: false only for read-only tasks, and test in a throwaway environment for full confidence.

All Ansible questions Roadmap: Ansible

More on Performance, Testing and CI/CD