On Fri, Mar 28, 2014 at 4:37 PM, Michael DeHaan <
mic...@ansible.com> wrote:
> We would not be taking a pull request for a new connection option.
>
> However, if you want to make sure the localhost if in the host file is
> always local:
No. I want to make connection to host "yetanothernode" local only if I execute
playbook on this host itself. If I execute playbook for this host from other
machine, I want it to connect to "yetanothernode" by SSH as usual.
The problem can also be generalized for nodes inside subnetwork, where
node see each other by local IPs (or local protocol) and should connect
using custom connection if some condition is met. If condition is not met,
we assume to be outside the network and fall down to standard connection
type.