There are cases (again, parameterized roles) - different roles can have the same dependency with different parameters, where that doesn't make sense.)
People get too hung up on role dependencies. In most of the content we write for customers, we actually don't use role deps at all. They are not needed. We generally find people coming over from Chef, specifically, get caught up in overdesign of playbook content, and people should keep things simple. That being said there is a certain class of users that really really really want role deps, and they exist for that purpose. it sounds like some people may like a role metadata parameter that is different from this, that is not allow_duplicates, that is something like once_per_play or something. I'd be open to consideration, but some refactoring of role implementations will need to happen first, that is in plan. On Thu, Jul 17, 2014 at 10:34 PM, Ahmad Khayyat <[email protected]> wrote: > On Fri, Jul 18, 2014 at 4:34 AM, Michael DeHaan <[email protected]> > wrote: > > Role dependencies can have parameters. >> > Isn’t that what allow_duplicates=yes is for? > > Wouldn’t it be more consistent for allow_duplicates not to discriminate > between executing the role explicitly or as a dependency? > > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAM19uTDoQ1ZBEyEWk63SHwkGX3p4o9rrP4frvyvYZN8yuZVr%3Dw%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAM19uTDoQ1ZBEyEWk63SHwkGX3p4o9rrP4frvyvYZN8yuZVr%3Dw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgy%2Bo%2BaWKfAB%3Doem%2BXaZ%3Djy-x3Y_8P%3Dfaev1B6OP3As5kA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
