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:

localhost ansible_connection=local

(*Further*, Ansible now has "implicit localhost" capabilities so localhost
doesn't have to be in inventory in most cases, and if not there and
referenced, it is assumed to be a local connection)



On Fri, Mar 28, 2014 at 6:49 AM, anatoly techtonik <techto...@gmail.com>wrote:

> Is it possible to define host in inventory in a way that will use local
> connection is the name resolves to local address?
>
> Is it worth to add connection=autolocal option?
>
> --
> 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/a079f99e-92c6-4e6c-b012-d0be219437a1%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/a079f99e-92c6-4e6c-b012-d0be219437a1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAEVJ8QN5vFg91b8HgF3qPJypJhgGHyX7d%3D7TekW2kj_D6jz4%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to