A task intermittently shows `changed` due to timestamps in a templated file.
IntermediateScenarioPerformance, Testing and CI/CD
Answer
Situation read → Non-deterministic template output.
What I'd do → Remove {{ ansible_date_time.iso8601 }} or similar from templates, or use ansible_managed (a static string).
# {{ ansible_managed }}
Why → Any value that changes per run makes the file differ each time.
Interview tip → Idempotency means output depends only on inputs.
More on Performance, Testing and CI/CD
A playbook that touches 200 hosts takes 40 minutes. Where do you start tuning?IntermediateYou install 15 packages with a loop and it is slow.BeginnerHow would you test a role in CI before it reaches production?IntermediateWhat would a Molecule `verify.yml` check for an Nginx role?IntermediateMolecule's idempotence step fails. How do you find the offending task?IntermediateDesign a CI pipeline for an Ansible repo.Advanced