From e75226b2645bb4f0ea8382023c73a21235e50a2b Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Wed, 5 Jun 2019 10:10:55 +0200 Subject: Clean application role mocked artifacts directories Directories created by Molecule tests were left in files tree and not cleaned up. This patch adds a task to shred them after test invocation. Change-Id: If745cfc45de2f73db5be1696a16a185ff2a625bf Issue-ID: OOM-1910 Signed-off-by: Bartek Grzybowski --- ansible/test/roles/cleanup-application/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ansible/test/roles/cleanup-application/tasks/main.yml (limited to 'ansible/test/roles') diff --git a/ansible/test/roles/cleanup-application/tasks/main.yml b/ansible/test/roles/cleanup-application/tasks/main.yml new file mode 100644 index 00000000..cbb8d521 --- /dev/null +++ b/ansible/test/roles/cleanup-application/tasks/main.yml @@ -0,0 +1,9 @@ +--- +- name: Clean application role mocked artifacts directories + file: + path: "{{ item }}" + state: absent + delegate_to: localhost + loop: + - certs + - application -- cgit 1.2.3-korg