Hi
Thanks for the comments. It would help tho, if I had explained the issue in a coherent way. :(
Let me rephrase:
I still got a service to install.
But it's in a bunch of boxes that we'll call 'client-group' (client1, client2...).
I still got a 'master' box that needs to be contacted for each 'client#' box.
So ansible should loop over the client-group and do:
- install on client#
- contact 'master' to relay the hostname of 'client#' and get an install string
- go back to 'client#' and perform a sync with this string.
The problem comes when I declare in a play:
From then on, it seems to me impossible to contact any other machine than what is declared on the 'hosts' line.
So that's why I did ask for help with lookups, but not sure at all, how that would work.
I ended up doing this with a loop in a shell script. Ugly but works...