From 0181c262cf021c3b89fae13d95b6cc7495d00676 Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Feb 16 2021 17:50:06 +0000 Subject: Prevent POST_FAILURE if artifacts directory is missing --- diff --git a/roles/run-tests-yml/tasks/main.yaml b/roles/run-tests-yml/tasks/main.yaml index b9ad0f6..8224a6e 100644 --- a/roles/run-tests-yml/tasks/main.yaml +++ b/roles/run-tests-yml/tasks/main.yaml @@ -21,6 +21,11 @@ - set_fact: tests_dir: "{{ discover_tests_basedir.stdout }}" +- name: Create artifacts directory + file: + path: "{{ tests_dir }}/artifacts" + state: directory + - name: Run the tests command: ansible-playbook {{ tests_dir }}/tests.yml args: