mirror of https://github.com/ansible/ansible.git
Fix integration tests with custom inventory.
All inventory hosts to which a connection is actually established should declare ansible_python_interpreter to avoid interpreter auto-discovery, as that may select the wrong interpreter.pull/48618/head
parent
c8c326d88e
commit
759e037edc
@ -1,3 +1,6 @@
|
||||
[local]
|
||||
testhost ansible_connection=local host_var_role_name=role3
|
||||
testhost2 ansible_connection=local host_var_role_name=role2
|
||||
|
||||
[local:vars]
|
||||
ansible_python_interpreter="{{ ansible_playbook_python }}"
|
||||
|
@ -1,5 +1,5 @@
|
||||
[local]
|
||||
testhost ansible_connection=local
|
||||
testhost ansible_connection=local ansible_python_interpreter="{{ ansible_playbook_python }}"
|
||||
|
||||
[nonexistent]
|
||||
testhost5 ansible_host=169.254.199.200
|
||||
testhost5 ansible_host=169.254.199.200 # no connection is ever established with this host
|
||||
|
@ -1,2 +1,2 @@
|
||||
[local]
|
||||
facthost[0:25] ansible_connection=local
|
||||
facthost[0:25] ansible_connection=local ansible_python_interpreter="{{ ansible_playbook_python }}"
|
||||
|
@ -1 +1 @@
|
||||
42 ansible_host=127.0.0.42 ansible_connection=local
|
||||
42 ansible_host=127.0.0.42 ansible_connection=local ansible_python_interpreter="{{ ansible_playbook_python }}"
|
||||
|
@ -1,3 +1,6 @@
|
||||
[local]
|
||||
testhost ansible_connection=local host_var_role_name=role3
|
||||
testhost2 ansible_connection=local host_var_role_name=role2
|
||||
|
||||
[local:vars]
|
||||
ansible_python_interpreter="{{ ansible_playbook_python }}"
|
||||
|
@ -1,3 +1,3 @@
|
||||
[testgroup]
|
||||
testhost ansible_connection=local
|
||||
localhost
|
||||
testhost ansible_connection=local # no connection is actually established with this host
|
||||
localhost ansible_connection=local ansible_python_interpreter="{{ ansible_playbook_python }}"
|
||||
|
Loading…
Reference in New Issue