summaryrefslogtreecommitdiffstats
path: root/ansible/test
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2019-06-25 12:24:15 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2019-06-25 12:24:15 +0200
commite0ee576bf46b22663ea2a5fdbef8245b225ab1cc (patch)
tree72a8ac882db11834af39183518969e8ca368a4d7 /ansible/test
parentf196161829439aa64613fd729e9d34b05ed937df (diff)
Remove artifacts left by 'dns' role tests
'dnsmasq.tar' docker image file will be removed after test invocation. Change-Id: I29668ece8c745794ad9462e527ca144bea6f4fc2 Issue-ID: OOM-1943 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/test')
-rw-r--r--ansible/test/play-infrastructure/molecule/default/cleanup.yml1
-rw-r--r--ansible/test/roles/cleanup-dns/tasks/main.yml6
2 files changed, 7 insertions, 0 deletions
diff --git a/ansible/test/play-infrastructure/molecule/default/cleanup.yml b/ansible/test/play-infrastructure/molecule/default/cleanup.yml
index 008543bd..74f38c51 100644
--- a/ansible/test/play-infrastructure/molecule/default/cleanup.yml
+++ b/ansible/test/play-infrastructure/molecule/default/cleanup.yml
@@ -7,4 +7,5 @@
roles:
- cleanup-nginx
- cleanup-nexus
+ - cleanup-dns
- cleanup-vncserver
diff --git a/ansible/test/roles/cleanup-dns/tasks/main.yml b/ansible/test/roles/cleanup-dns/tasks/main.yml
new file mode 100644
index 00000000..738c3540
--- /dev/null
+++ b/ansible/test/roles/cleanup-dns/tasks/main.yml
@@ -0,0 +1,6 @@
+---
+- name: Remove saved dnsmasq image
+ delegate_to: localhost
+ file:
+ path: /tmp/dnsmasq.tar
+ state: absent