summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-06-26 10:47:47 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-26 10:47:47 +0000
commit97a93cad5286e57921b5e635379cbb7f1d843d55 (patch)
tree9f17a3dfb6ae2df6e353bdfc521f8d1f5ca745d7 /ansible
parent9591bbf978d8e738143f4a94b6df7045e4074f78 (diff)
parente0ee576bf46b22663ea2a5fdbef8245b225ab1cc (diff)
Merge "Remove artifacts left by 'dns' role tests"
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/dns/molecule/default/cleanup.yml6
-rw-r--r--ansible/test/play-infrastructure/molecule/default/cleanup.yml1
-rw-r--r--ansible/test/roles/cleanup-dns/tasks/main.yml6
3 files changed, 13 insertions, 0 deletions
diff --git a/ansible/roles/dns/molecule/default/cleanup.yml b/ansible/roles/dns/molecule/default/cleanup.yml
new file mode 100644
index 00000000..60195bb3
--- /dev/null
+++ b/ansible/roles/dns/molecule/default/cleanup.yml
@@ -0,0 +1,6 @@
+---
+- name: Cleanup
+ hosts: all
+ ignore_unreachable: true
+ roles:
+ - cleanup-dns
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