Skip to content

Commit 70bbd18

Browse files
committed
Added code to load the var.file for ansible integration tests
1 parent 61caee3 commit 70bbd18

File tree

1 file changed

+9
-3
lines changed
  • ansible/collections/ansible_collections/nhsd/apigee/tests/integration/targets/test_validate_manifest/tasks

1 file changed

+9
-3
lines changed

ansible/collections/ansible_collections/nhsd/apigee/tests/integration/targets/test_validate_manifest/tasks/main.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@
1414
set_fact:
1515
DIST_DIRS: "{{ find_dist_dirs | json_query('files[*].path') | list }}"
1616

17+
1718
- name: validate test manifest files
18-
include_role:
19-
name: validate_manifest
20-
vars_from: "{{ DIST_DIR }}/vars.yml"
19+
block:
20+
- name: Load vars.yml for {{ DIST_DIR }}
21+
include_vars:
22+
file: "{{ DIST_DIR }}/vars.yml"
23+
24+
- name: Run validate_manifest role
25+
include_role:
26+
name: validate_manifest
2127
loop: "{{ DIST_DIRS }}"
2228
loop_control:
2329
loop_var: DIST_DIR

0 commit comments

Comments
 (0)