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

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.

All Ansible questions Roadmap: Ansible

More on Performance, Testing and CI/CD