diff options
author | Matt Clay <matt@mystile.com> | 2019-03-12 01:18:39 +0100 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2019-03-12 05:43:58 +0100 |
commit | 759e037edcb2f4fc28718a72cc520d3cd572ddf8 (patch) | |
tree | 615c5d393e3ba6a3dc23ecf1f0400d80b40900b6 /test/integration/targets/include_import | |
parent | Use unicode string for auto interpreter warnings (#53671) (diff) | |
download | ansible-759e037edcb2f4fc28718a72cc520d3cd572ddf8.tar.xz ansible-759e037edcb2f4fc28718a72cc520d3cd572ddf8.zip |
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.
Diffstat (limited to 'test/integration/targets/include_import')
-rw-r--r-- | test/integration/targets/include_import/inventory | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/integration/targets/include_import/inventory b/test/integration/targets/include_import/inventory index 470333e7ba..3ae8d9c305 100644 --- a/test/integration/targets/include_import/inventory +++ b/test/integration/targets/include_import/inventory @@ -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 }}" |