Skip to content

Instantly share code, notes, and snippets.

@metabsd
Last active August 20, 2020 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metabsd/dbe5b472b87dcb27927d4145203c0ba3 to your computer and use it in GitHub Desktop.
Save metabsd/dbe5b472b87dcb27927d4145203c0ba3 to your computer and use it in GitHub Desktop.
ROLE6
+
|
|
|
|
|
|
v
ROLE5
+ +
| |
| |
| |
| |
| |
+ROLE3<+ +->ROLE4+
| + + |
| | | |
| | | |
| | | |
| | | |
v | v v
ROLE1 +---------> ROLE2
When I call ROLE6
I assert that ROLE1 and 2 will be executed only 1 time
I get is ROLE1-2 executed for ROLE3 and also executed
Also reexecuted for ROLE4-5-6
ROLE1 META Dependencies : Empty
ROLE2 META Dependencies : Empty
ROLE3 META Dependencies : ROLE1, ROLE2
ROLE4 META Dependencies : ROLE1, ROLE2
ROLE5 META Dependencies : ROLE4
ROLE6 META Dependencies : ROLE5
I'm only calling ROLE6 via
include_role:
name: ROLE6 (I know role have to be only lower case ;) ) Its an example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment