Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
WIP: Fix Issue #39543 #56508
A first attempt at fixing issue #39543, by preventing when clauses being inherited from parents (which is a problem is a role is included from multiple parents, with different when clauses).
There's also a fix for an unrelated issue with
Apologies for code style issues - this is my first time working on Ansible.
Issue #39543 seems to be caused by the fact that when a role is included via
It appears that even though
My first attempt at fixing this was to prevent when clauses propagating from parents to children. This broke some tests, so my current approach is to distinguish between roles with different parents in the role cache.
Note that there is also another fix in here, for a bug with