In your original note:
dependencies:
- { role: pythonapp, when: is_legacy is not defined }
- { role: rubyapp, when: is_legacy is defined }
If pythonapp and rubyapp share a common dependency like the role
"dbaccess" then when pythonapp gets skipped, it currently sets the
dbaccess role to be skipped even though rubyapp depends on it.
====
What I'm saying is in your playbook, do this:
roles:
- { role: pythonapp, when: is_legacy is not defined }
- { role: rubyapp, when: is_legacy is defined }
In this case, the common dep would not be skipped inadvertantly.
On Tue, Jul 29, 2014 at 10:31 AM, Serge van Ginderachter <
[email protected]> wrote:
>
> On 29 July 2014 16:19, John Anderson <[email protected]> wrote:
>
>> If I have two jobs: being a parent and a restaurant cook, one of the
>> tasks of both of these jobs is doing the dishes. If I
>> stop being a restaurant cook this doesn't mean I get to stop doing dishes
>> as a parent.
>>
>
> Yes, but you probably will have other tools as a cook and as a parent.
> Parameters differ. You also do that in other locations.
> So, in this example, you would have to do it twice: at work and at home,
> each with their specific parameters,
>
>>
>> Would love to understand this model more and why skipping a role would
>> mean that any others roles who have explicitly
>> defined dependencies would be ignored.
>>
>
> So in this case, one of the parameters is a conditional that should not
> apply to the other case. So you need to have this dependency as a double,
> separate dependency with their won parameters.
>
> Which means you need to allow duplicates.
>
>
>
> Serge
>
> --
> 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/CAEhzMJA73XD-qvneW1HkwWsZVfy8SpEbdrxiWt-zZM_%3D-G4A1A%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAEhzMJA73XD-qvneW1HkwWsZVfy8SpEbdrxiWt-zZM_%3D-G4A1A%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%2BnsWgxcVY3NUEoEBKczu42oNQ%3DiC8h_ngSv%3DPh60X18gPMTag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.