From f7b75cc438288d898d7271bc4eee7e0723526861 Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Fri, 30 Apr 2021 16:17:18 +0200 Subject: [PATCH 1/2] tests/azure: Set ANSIBLE_LIBRARY to fix unknown interpreter issue The ANSIBLE_LIBRARY environment variable needs to point to molecule directory. --- 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 \ From 846566192518fba52b360c818e1f65c7777abeac Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Mon, 3 May 2021 11:40:38 +0200 Subject: [PATCH 2/2] tests/azure: Deactivate NTP in prepare-build In CentOS 8 and also Fedora the configuration and start of chrony fails with Fatal error : adjtimex(0x8001) failed : Operation not permitted For more information: https://bugzilla.redhat.com/show_bug.cgi?id=1772053 NTP will not be needed before a separate namespace is used for clocks. --- molecule/resources/playbooks/prepare-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/molecule/resources/playbooks/prepare-build.yml b/molecule/resources/playbooks/prepare-build.yml index 41f513d4..5e8e5a92 100644 --- a/molecule/resources/playbooks/prepare-build.yml +++ b/molecule/resources/playbooks/prepare-build.yml @@ -25,3 +25,4 @@ ipadm_password: SomeDMpassword ipaserver_domain: test.local ipaserver_realm: TEST.LOCAL + ipaclient_no_ntp: yes