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

**URL:** <https://forum.ansible.com/t/force-dependant-roles-with-different-params-to-be-executed/18650>\
**Category:** Ansible Project\
**Created:** [July 1, 2015, 2:07pm UTC](https://forum.ansible.com/t/force-dependant-roles-with-different-params-to-be-executed/18650 "2015-07-01T14:07:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Torsten\_Reinhard](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@Torsten\_Reinhard](https://forum.ansible.com/u/Torsten_Reinhard)\
**Post date:** [July 1, 2015, 2:07pm UTC](https://forum.ansible.com/t/force-dependant-roles-with-different-params-to-be-executed/18650/1 "2015-07-01T14:07:02Z")

</div>

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
