Interview Prep/Real-World Interview/Terraform and Ansible

`import_tasks` vs `include_tasks`?

AdvancedConceptTerraform and Ansible
Answer

import_* is static and processed at parse time, so tags and when apply to every imported task. include_* is dynamic and evaluated at runtime, so it can be used with loops and variable file names.

All Real-World Interview questions Roadmap: Interview readiness

More on Terraform and Ansible