Hmmm, this would require some games to figure out if the hostname in the
playbook matched what the local machine was saying it was.

I'm inclined to say no to this, and it can be greatly simplified by even
allowing the machine to be managed locally over SSH if you want - - if
localhost is not special.

Generally most people are designing a node for management purposes rather
than running Ansible from one of the nodes in a cluster, etc, so I can't
see this being a very common use case.

Perhaps I'm misunderstanding though.




On Sat, Mar 29, 2014 at 1:49 AM, anatoly techtonik <techto...@gmail.com>wrote:

> On Fri, Mar 28, 2014 at 4:37 PM, Michael DeHaan <mich...@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.
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAPkN8x%2BxFnoBaN_yGw5%2BWFpzOCejM%2BAhLBTh%2BNd%2BsNZpZo_9yQ%40mail.gmail.com
> .
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEVJ8QM8%3DzF5K3xqHGgoCn1R%3DYBVmmApTL7eZ2MxvX5mWhhbeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to