From f24390473ba4b10b4265f94d10afaa6b2ad32fd3 Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Fri, 30 Apr 2021 16:17:18 +0200 Subject: [PATCH] tests/azure: Set ANSIBLE_LIBRARY to fix unknown interpreter issue The ANSIBLE_LIBRARY environment variable needs to be set. --- tests/azure/templates/build_container.yml | 2 ++ tests/azure/templates/playbook_tests.yml | 2 ++ tests/azure/templates/pytest_tests.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/tests/azure/templates/build_container.yml b/tests/azure/templates/build_container.yml index 0bd49321..c77e2745 100644 --- a/tests/azure/templates/build_container.yml +++ b/tests/azure/templates/build_container.yml @@ -23,6 +23,8 @@ jobs: - script: molecule create -s ${{ parameters.build_scenario_name }} displayName: Create test container + env: + ANSIBLE_LIBRARY: ./molecule - script: | docker stop ${{ parameters.build_scenario_name }} diff --git a/tests/azure/templates/playbook_tests.yml b/tests/azure/templates/playbook_tests.yml index d5b5d818..6962fb76 100644 --- a/tests/azure/templates/playbook_tests.yml +++ b/tests/azure/templates/playbook_tests.yml @@ -44,6 +44,8 @@ jobs: cp -a plugins/module_utils/* ~/.ansible/module_utils molecule create -s ${{ parameters.scenario }} displayName: Setup test container + env: + ANSIBLE_LIBRARY: ./molecule - script: | pytest \ diff --git a/tests/azure/templates/pytest_tests.yml b/tests/azure/templates/pytest_tests.yml index 64fe0b45..d4254543 100644 --- a/tests/azure/templates/pytest_tests.yml +++ b/tests/azure/templates/pytest_tests.yml @@ -36,6 +36,8 @@ jobs: cp -a plugins/module_utils/* ~/.ansible/module_utils molecule create -s ${{ parameters.scenario }} displayName: Setup test container + env: + ANSIBLE_LIBRARY: ./molecule - script: | pytest \