|
|
@ -1,11 +1,13 @@
|
|
|
|
# related: issue #511, #536
|
|
|
|
# related: issue #511, #536
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# When no ansible_python_interpreter is set, executor/module_common.py chooses
|
|
|
|
|
|
|
|
# "/usr/bin/python".
|
|
|
|
- name: integration/transport_config/python_path.yml
|
|
|
|
- name: integration/transport_config/python_path.yml
|
|
|
|
hosts: tc-python-path-unset
|
|
|
|
hosts: tc-python-path-unset
|
|
|
|
|
|
|
|
|
|
|
|
# When no ansible_python_interpreter is set, executor/module_common.py
|
|
|
|
|
|
|
|
# chooses "/usr/bin/python".
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- meta: end_play
|
|
|
|
|
|
|
|
when: not is_mitogen
|
|
|
|
- mitogen_get_stack:
|
|
|
|
- mitogen_get_stack:
|
|
|
|
register: out
|
|
|
|
register: out
|
|
|
|
- assert_equal:
|
|
|
|
- assert_equal:
|
|
|
@ -13,8 +15,11 @@
|
|
|
|
right: ["/usr/bin/python"]
|
|
|
|
right: ["/usr/bin/python"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Non-localhost with explicit ansible_python_interpreter
|
|
|
|
- hosts: tc-python-path-hostvar
|
|
|
|
- hosts: tc-python-path-hostvar
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- meta: end_play
|
|
|
|
|
|
|
|
when: not is_mitogen
|
|
|
|
- mitogen_get_stack:
|
|
|
|
- mitogen_get_stack:
|
|
|
|
register: out
|
|
|
|
register: out
|
|
|
|
- assert_equal:
|
|
|
|
- assert_equal:
|
|
|
@ -25,6 +30,8 @@
|
|
|
|
# Implicit localhost gets ansible_python_interpreter=virtualenv interpreter
|
|
|
|
# Implicit localhost gets ansible_python_interpreter=virtualenv interpreter
|
|
|
|
- hosts: localhost
|
|
|
|
- hosts: localhost
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- meta: end_play
|
|
|
|
|
|
|
|
when: not is_mitogen
|
|
|
|
- mitogen_get_stack:
|
|
|
|
- mitogen_get_stack:
|
|
|
|
register: out
|
|
|
|
register: out
|
|
|
|
- assert_equal:
|
|
|
|
- assert_equal:
|
|
|
@ -35,6 +42,8 @@
|
|
|
|
# explicit local connections get the same treatment as everything else.
|
|
|
|
# explicit local connections get the same treatment as everything else.
|
|
|
|
- hosts: tc-python-path-local-unset
|
|
|
|
- hosts: tc-python-path-local-unset
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- meta: end_play
|
|
|
|
|
|
|
|
when: not is_mitogen
|
|
|
|
- mitogen_get_stack:
|
|
|
|
- mitogen_get_stack:
|
|
|
|
register: out
|
|
|
|
register: out
|
|
|
|
- assert_equal:
|
|
|
|
- assert_equal:
|
|
|
@ -44,6 +53,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
- hosts: tc-python-path-local-explicit
|
|
|
|
- hosts: tc-python-path-local-explicit
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- meta: end_play
|
|
|
|
|
|
|
|
when: not is_mitogen
|
|
|
|
- mitogen_get_stack:
|
|
|
|
- mitogen_get_stack:
|
|
|
|
register: out
|
|
|
|
register: out
|
|
|
|
- assert_equal:
|
|
|
|
- assert_equal:
|
|
|
|