mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
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.
This commit is contained in:
@@ -3,3 +3,6 @@ testhost ansible_connection=local
|
||||
testhost2 ansible_connection=local
|
||||
testhost3 ansible_ssh_host=127.0.0.3
|
||||
testhost4 ansible_ssh_host=127.0.0.4
|
||||
|
||||
[local:vars]
|
||||
ansible_python_interpreter="{{ ansible_playbook_python }}"
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
name: "foo{{item}}"
|
||||
groups: foo
|
||||
ansible_connection: local
|
||||
ansible_python_interpreter: "{{ ansible_playbook_python }}"
|
||||
loop: "{{ range(10)|list }}"
|
||||
|
||||
# We expect all of the next 3 runs to succeeed
|
||||
|
||||
Reference in New Issue
Block a user