Thanks for your reply, and for the tips
In my opinion, if “Host” is in “Hostgroup B”, and “Hostgroup A” is parent of “Hostgroup B” (So “Hostgroup B” is a child of “Hostgroup A”), I got : HostgroupA/HostgroupB/Host
With the inherence of “HostgroupA/HostgroupB/Host” I think that the best approach is to play firstly “Hostgroup A” roles, then “Hostgroup B” roles and finally “Host” roles.
If I use your example, it becomes :
In my opinion, this inherence is good and can be used in the most common use cases.
Moreover, it could be very useful if we could choose the order of roles execution from Foreman but only for a specific entity. For example, from Hostgroup B, I could be able to change the order of roles “x,y” but no “k,c” because “k,c” are on “Hostgroup A”.
Have a nice day