Better document connection: local (#34462)
* Better document connection: local * Attempt at clear wording. * Fixed spacing
This commit is contained in:
parent
297eab5073
commit
07221d777a
1 changed files with 7 additions and 0 deletions
|
@ -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…
Reference in a new issue