Calling a Role within a Role with multiple times and with each time a different values

Hi All,

I need to call a Ansible role Multiple times within a role and each time I need to pass different set of values via extra vars.

Anybody has any solution to it?

Regards,
Somarko Das

Hi,

To do that, I think you need to call it with the module “include_role” in the tasks. This is called Dynamic Reuse.

Example :

Hi Didier,

Thanks for the prompt reply,

This is where we are statically passing, I mean this is hardcoded, the values but in my scenario end-user will decide what values to pass

Thanks & Regards,
Som Das