Force (dependant) roles with different params to be executed ?

Hi all,

I have a playbook like:

`
hosts: weblogic

roles:

  • { role: weblogic, wls: “{{weblogic[‘12.1.3’]}}” }
  • { role: weblogic, wls: “{{weblogic[‘12.1.1’]}}” }

`

The role “weblogic” itself has a dependency to a role “java/jdk”

`
dependencies:

  • { role: java/jdk, jdk_version: “{{wls.jdk_version}}” }

`

Now,the role “java/jdk” is executed only once in this play - but needs to be executed twice - for each weblogic role execution,
using different parameters of course, coming from the dict i pass in.

How can I force this ?

I know about the “allow_duplicates” - but this cannot be set here, right ?

Any way todo this?

With role dependencies we want to manage the tree, that needs to be setup whenever setting up a component.
Setting up weblogic should therefore always setup the needed JDK.

Thanx for any hints,

Torsten