You need to upgrade a community role without surprising changes.
IntermediateScenarioRoles, Collections and Project Structure
Answer
Situation read → Third-party update risk.
What I'd do →
- Read the changelog and diff old vs new tag.
- Bump the pin in a branch.
- Run Molecule/
--check --diffagainst staging. - Roll to prod via the normal pipeline.
Why → Roles change defaults over time; a pinned, reviewed upgrade avoids silent behaviour shifts.
Interview tip → Fork when upstream is abandoned, but track it.
More on Roles, Collections and Project Structure
You have a 600-line playbook that sets up web, db and monitoring. How do you restructure it?BeginnerWhere do you put a variable users of your role are expected to override?BeginnerTwo roles need to run in a fixed order, such as `common` before `nginx`.BeginnerA role is used twice with different parameters in one play, but only runs once.IntermediateYou want to share roles across several repos and teams.IntermediateHow do you pin Ansible itself so a CI run today behaves like one last month?Intermediate