diff --git a/.github/workflows/molecule.yaml b/.github/workflows/molecule.yaml index 0d1e72d9a..80db37c4d 100644 --- a/.github/workflows/molecule.yaml +++ b/.github/workflows/molecule.yaml @@ -59,7 +59,7 @@ jobs: - name: Install ansible run: pip install ansible - name: Install collections - run: ansible-galaxy collection install -r requirements.yml + run: ansible-galaxy collection install --force -r requirements.yml - name: Install molecule deps run: pip install -r molecule-requirements.txt - name: Run molecule test diff --git a/roles/edpm_multipathd/molecule/default/prepare.yml b/roles/edpm_multipathd/molecule/default/prepare.yml index a8c1e5639..83c61e5c5 100644 --- a/roles/edpm_multipathd/molecule/default/prepare.yml +++ b/roles/edpm_multipathd/molecule/default/prepare.yml @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -- name: Prepare +- name: Prepare test deps hosts: all gather_facts: false roles: @@ -23,4 +23,14 @@ - iproute - iscsi-initiator-utils - podman - - role: env_data +- name: Prepare + hosts: all + roles: + - role: osp.edpm.env_data + tasks: + - name: set /etc/localtime + become: true + ansible.builtin.file: + path: /etc/localtime + src: /usr/share/zoneinfo/UTC + state: link diff --git a/roles/edpm_telemetry/molecule/default/prepare.yml b/roles/edpm_telemetry/molecule/default/prepare.yml index 38bdb3f4b..ba5277fc6 100644 --- a/roles/edpm_telemetry/molecule/default/prepare.yml +++ b/roles/edpm_telemetry/molecule/default/prepare.yml @@ -34,6 +34,13 @@ state: directory mode: "0775" + - name: set /etc/localtime + become: true + ansible.builtin.file: + path: /etc/localtime + src: /usr/share/zoneinfo/UTC + state: link + - name: Create /run/libvirt directory ansible.builtin.file: path: "/run/libvirt" diff --git a/scripts/molecule_venv.sh b/scripts/molecule_venv.sh index 3157f8710..72f1e5fdb 100755 --- a/scripts/molecule_venv.sh +++ b/scripts/molecule_venv.sh @@ -21,6 +21,6 @@ fi source $LOCAL_MOLECULE_ENV/bin/activate pip install -r molecule-requirements.txt -ansible-galaxy collection install -r requirements.yml +ansible-galaxy collection install --force -r requirements.yml ./scripts/test_roles.py deactivate