For me the use case is :
- I have a playbook that installs elasticsearch using a role
- elasticsearch version is defined in the host file as a variable along each server name
- I have a group with all the hosts needing elasticsearch
Until then, we were using elasticsearch 0.90.x (x is 2,3 or 9).
Now, I need to install BOTH the 0.90.x and the new 1.0.1 version at the same time.
While the playbook can handle that, I can't find a way to have the role played twice, once for each version ?
The only solution so far is calling the role twice and statically setting the version on each call, which is not acceptable.
One solution would be to call the role using a with_item statement to have it run for every version is defined in a dict... but this is deprecated....
Any clue ?
Thanks.
Prune