From 07221d777a102c1c5ccea4c577fbe6cd3e6f6c13 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 7 Feb 2018 16:17:57 -0500 Subject: [PATCH] Better document connection: local (#34462) * Better document connection: local * Attempt at clear wording. * Fixed spacing --- docs/docsite/rst/playbooks_delegation.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/docsite/rst/playbooks_delegation.rst b/docs/docsite/rst/playbooks_delegation.rst index 319c8a54127..4fe1d157af0 100644 --- a/docs/docsite/rst/playbooks_delegation.rst +++ b/docs/docsite/rst/playbooks_delegation.rst @@ -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