A teammate asks if tags are enough to protect production from partial runs.
IntermediateScenarioPerformance, Testing and CI/CD
Answer
Situation read → Tags are convenience, not safety.
What I'd do → Explain they are easy to misuse (a missing tag skips a needed task). For safety, use separate playbooks or workflow nodes, limits enforced in AWX, and approval gates.
Why → --tags can leave dependencies unexecuted, such as a package install skipped before a config task.
Interview tip → Use always tags for prerequisites like fact gathering and variable loading.
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