summaryrefslogtreecommitdiffstats
path: root/ansible/test/roles/cleanup-nexus/tasks/main.yml
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2019-06-13 11:41:24 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2019-06-24 14:57:29 +0200
commit7238ccf32f392fb7805e1ae2f3f951c39237de57 (patch)
treef42c973a75b07bb0bc63beac6013cbd8e405e972 /ansible/test/roles/cleanup-nexus/tasks/main.yml
parent70f9f3024318d7e85c3dabe430175dcf03540a0e (diff)
Add cleanup stage to 'nexus' role test
List of docker images to download/cleanup by the prepare and cleanup stages is now defined in one place (prepare-nexus role defaults) for clarity and ease of management. Change-Id: I4c18912fd8c5eadc4d68e1bc10f5c2251d58634e Issue-ID: OOM-1915 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/test/roles/cleanup-nexus/tasks/main.yml')
-rw-r--r--ansible/test/roles/cleanup-nexus/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/ansible/test/roles/cleanup-nexus/tasks/main.yml b/ansible/test/roles/cleanup-nexus/tasks/main.yml
new file mode 100644
index 00000000..1d1e811b
--- /dev/null
+++ b/ansible/test/roles/cleanup-nexus/tasks/main.yml
@@ -0,0 +1,7 @@
+---
+- name: Remove saved docker images
+ delegate_to: localhost
+ file:
+ path: "{{ item.archive_path }}"
+ state: absent
+ loop: "{{ prepare_nexus_images }}"