From: Bartek Grzybowski Date: Tue, 25 Jun 2019 10:24:15 +0000 (+0200) Subject: Remove artifacts left by 'dns' role tests X-Git-Tag: 6.0.0-ONAP~133^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F38%2F90438%2F1;p=oom%2Foffline-installer.git 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 --- 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