Better document connection: local (#34462)

* Better document connection: local

* Attempt at clear wording.

* Fixed spacing
This commit is contained in:
Brian Coca 2018-02-07 16:17:57 -05:00 committed by GitHub
parent 297eab5073
commit 07221d777a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,6 +254,13 @@ use the default remote connection type::
- hosts: 127.0.0.1
connection: local
.. note::
If you set the connection to local and there is no ansible_python_interpreter set, modules will run under /usr/bin/python and not
under {{ ansible_playbook_python }}. Be sure to set ansible_python_interpreter: "{{ ansible_playbook_python }}" in
host_vars/localhost.yml, for example. You can avoid this issue by using ``local_action`` or ``delegate_to: localhost`` instead.
.. _interrupt_execution_on_any_error:
Interrupt execution on any error