diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index aaee4037..629003e3 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -8,3 +8,9 @@ label: "{{ item }}" vars: container_name: "{{ item }}" + +--- +- name: "[TEST] Verify service for logging" + ansible.builtin.include_tasks: + file: service_tests.yml + tags: test diff --git a/roles/common/tasks/service_tests.yml b/roles/common/tasks/service_tests.yml new file mode 100644 index 00000000..4e27b3fd --- /dev/null +++ b/roles/common/tasks/service_tests.yml @@ -0,0 +1,7 @@ +--- +- name: Verify service is running + ansible.builtin.shell: + cmd: | + oc get service -n "{{ service_nspace }}" "{{ service_name }}" + changed_when: false + register: output \ No newline at end of file