Better document connection: local (#34462)

* Better document connection: local

* Attempt at clear wording.

* Fixed spacing
pull/35868/head
Brian Coca 6 years ago committed by GitHub
parent 297eab5073
commit 07221d777a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save