ansible/ansible — pull request #1092 by jpalley (2012-09-25 19:03:39+00:00)
Title: make delegate_to localhost act like local_action

If delegate_to is localhost then use the local transport. There are two motivations for this:

a) Make local_action have the same behavior as delegate_to: localhost to save confusion.

b) My delegate_to is a host specific variable. Sometimes its a remote machine, sometimes it localhost. For localhost I want to use the local transport.