ansible-redis icon indicating copy to clipboard operation
ansible-redis copied to clipboard

Multiple instances on same host

Open Migsi opened this issue 5 years ago • 1 comments

Hello,

maybe I just didn't figure this out yet, but if, and if yes, how is it possible to setup multiple instances with this role? In case this is not possible, would you consider accepting a PR adding the feature in? (will take a little while ofc)

Migsi avatar Aug 05 '20 18:08 Migsi

Update: It is indeed already possible to run this role more than once per playbook. Allthough there seem to be issues regarding loops. When the role is called from a loop, variable propagation seems to fail. The current solution to this is calling the role as often as required in secuence. It might also work to wrap the role call into a block statement to which the loop is applied, but this was not tested by me (yet).

Migsi avatar Oct 21 '20 14:10 Migsi