Apply localhost workaround if ansible_host is localhost

This shouldn't really ever happen for real in zuul, but just in case we
do something in a trusted playbook somewhere like setting ansible_host
to localhost, the code should at least do the right thing. (This comes
up more in doing local testing of plugins)

Change-Id: I638fa5f8cd69cd46823ea42bc4e257972d125945
1 file changed