It depends on how your hosts is defined st the play level. 

Assuming your play is targeting a remote host then your task will be running on 
the remote host. 

If you need to run some task locally while the rest of the tasks remotely you 
can use delegate_to: localhost on that one task. 

Regards 
Tony

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to