summaryrefslogtreecommitdiffstats
path: root/tests/roles/cli/tasks/cleanup.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/roles/cli/tasks/cleanup.yaml')
-rw-r--r--tests/roles/cli/tasks/cleanup.yaml13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/roles/cli/tasks/cleanup.yaml b/tests/roles/cli/tasks/cleanup.yaml
index 45f31d5..e14ffb1 100644
--- a/tests/roles/cli/tasks/cleanup.yaml
+++ b/tests/roles/cli/tasks/cleanup.yaml
@@ -1,4 +1,11 @@
---
-- name: remove buildah containers after testing
- command: buildah rm busybox nginxc nginxc-2
- ignore_errors: true
+- block:
+ - name: remove all buildah containers after testing
+ command: buildah rm -a
+
+ - name: remove all images after testing
+ command: buildah rmi -a
+
+ always:
+ - include_role:
+ name: tear-down