Skip to content

Commit 2480cc4

Browse files
committed
Create group_vars directory before starting the molecule tests
Without this directory, Molecule would fail with an error: CRITICAL The source path '/home/zuul/src/github.com/openstack-k8s-operators/edpm-ansible/roles/edpm_kernel/molecule/default/../../../../group_vars/' does not exist. WARNING An error occurred during the test sequence action: 'prepare'. Cleaning up. CRITICAL The source path '/home/zuul/src/github.com/openstack-k8s-operators/edpm-ansible/roles/edpm_kernel/molecule/default/../../../../group_vars/' does not exist. Signed-off-by: Daniel Pawlik <[email protected]>
1 parent 5d5e2d5 commit 2480cc4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ci/playbooks/molecule-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
ansible.builtin.include_vars:
1818
file: "{{ cifmw_reproducer_molecule_env_file }}"
1919

20+
- name: Ensure group_vars dir exists
21+
ansible.builtin.file:
22+
path: "{{ roles_dir }}/../../group_vars"
23+
state: directory
24+
2025
- name: Run molecule
2126
environment:
2227
ANSIBLE_LOG_PATH: "{{ ansible_user_dir }}/zuul-output/logs/ansible-execution.log"

0 commit comments

Comments
 (0)