summaryrefslogtreecommitdiffstats
path: root/ansible/test
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-06-07 13:35:57 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-07 13:35:57 +0000
commite910a0b67efcf06bcba81bc9acaa3052e7e399f4 (patch)
tree5b5927c209f456fab6d31721ef1edc06af8c04ec /ansible/test
parent3ef63f580a6fcf697c4f28ca55f27239f564dc53 (diff)
parent327223fdf32d20d54fc2d64feca200c1259f0d3f (diff)
Merge "Add cleanup stage to 'nginx' role test"
Diffstat (limited to 'ansible/test')
-rw-r--r--ansible/test/play-infrastructure/molecule/default/cleanup.yml6
-rw-r--r--ansible/test/roles/cleanup-nginx/tasks/main.yml6
2 files changed, 12 insertions, 0 deletions
diff --git a/ansible/test/play-infrastructure/molecule/default/cleanup.yml b/ansible/test/play-infrastructure/molecule/default/cleanup.yml
new file mode 100644
index 00000000..9870a553
--- /dev/null
+++ b/ansible/test/play-infrastructure/molecule/default/cleanup.yml
@@ -0,0 +1,6 @@
+---
+- name: Cleanup
+ hosts: all
+ ignore_unreachable: true
+ roles:
+ - cleanup-nginx
diff --git a/ansible/test/roles/cleanup-nginx/tasks/main.yml b/ansible/test/roles/cleanup-nginx/tasks/main.yml
new file mode 100644
index 00000000..94517519
--- /dev/null
+++ b/ansible/test/roles/cleanup-nginx/tasks/main.yml
@@ -0,0 +1,6 @@
+---
+- name: Remove saved nginx docker image
+ delegate_to: localhost
+ file:
+ path: /tmp/nginx.tar
+ state: absent