"My understanding of delegate_to is that it runs the task on the designated
host, once for each host in the current group, and with the current host's
variables."

Delegate_to runs the given step on the delegated host, instead of the one
currently being referenced in the host loop.

" I suspect your issues stem from the variable not being defined or being
empty, delegate_to will fallback to localhost."

This really shouldn't be the case, and I would consider that  a bug if so.

It should be easy to test that independent of the above example, however.



On Mon, May 5, 2014 at 9:46 PM, Brian Coca <[email protected]> wrote:

> delegate_to does work, I suspect your issues stem from the variable not
> being defined or being empty, delegate_to will fallback to localhost.
>
> Brian Coca
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CADn%2BHsymZj3jg1TPY5Q-%3D7785vFVG-oSuqSkMByrOFRRh5RQDA%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CADn%2BHsymZj3jg1TPY5Q-%3D7785vFVG-oSuqSkMByrOFRRh5RQDA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgzFSmT6_COQE0kiEDq0R1T2jmUvYxrYvVWABD8f6eZ8YA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to