Comment 4 for bug 1762742

Revision history for this message
Corey Wright (coreywright) wrote :

So one quick-and-dirty solution is to resolve the delegate host to an IP address within the templated delegate_to field because Ansible can't (because this resolves the IP using all available variables, while Ansible only resolves delegate hosts using pre-selected "delegated" host vars).

I call it dirty because it duplicates the Ansible functionality in the template, ie looking up the IP address, and Ansible still evaluates the template twice, but this way it evaluates it to two different IP addresses instead of two different inventory names.