You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Many thanks :-)
The order is such that the dependencies are executed *first*, which is to say that the role that is defined as having the dependency on the other roles requires that the other roles have been executed first.
This makes sense, given what is implied by the meaning of dependency.
Is there also a mechanism to have other roles executed *after*?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Hi,
In Ansible you can't 'call' roles from roles whenever you want - you can just have dependencies that are executed before your role. What we do in such cases is to have one orchestration role that doesn't do anything else than depending on multiple roles in the right order. Alternatively, you can handle that on a play level by including roles in the right order and documenting that for your users but this adds a bit of code duplication and complexity.
-ibratoev
Nathan Sowatskey
unread,
Oct 17, 2015, 7:04:25 AM10/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Many thanks for this. I like the idea of a “coordinating” role.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Hello,
I am also interested on this subject. I am also having a need to have a role within a role and I don't know how to properly achieve that. I am looking forward to create atomic roles (with "unit testing" using travis) that are grouped within a bigger role-group (that could be also tested), which are then included in a bigger all-in-one role (that could be also tested).
Any example of roles within roles that could be shared please?