summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Zegan <m.zegan@samsung.com>2019-06-04 12:59:58 +0200
committerMichal Zegan <m.zegan@samsung.com>2019-06-04 13:11:04 +0200
commit6572c426eb667be09198aa8edca7c4b320f0f60b (patch)
treefb427d1665034d7f2ad0f07faaeed467ea2286e6
parentdf7d7cc1294c6ea1fcab2ed4ac2ee7c375b29651 (diff)
Remove cleanup-rancher test role
This role is not used by rancher tests anymore. Issue-ID: OOM-1902 Change-Id: I989c41dfbf6dec8054befad87ac367bbf1afbc02 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
-rw-r--r--ansible/test/roles/cleanup-rancher/tasks/main.yml18
1 files changed, 0 insertions, 18 deletions
diff --git a/ansible/test/roles/cleanup-rancher/tasks/main.yml b/ansible/test/roles/cleanup-rancher/tasks/main.yml
deleted file mode 100644
index 21b02988..00000000
--- a/ansible/test/roles/cleanup-rancher/tasks/main.yml
+++ /dev/null
@@ -1,18 +0,0 @@
----
-# Remove containers spawned by Rancher Agent
-- name: Get list of containers spawned by Rancher Agent
- docker_list_containers:
- label_name: "{{ item.label }}"
- label_value: "{{ item.value }}"
- loop: "{{ container_list_by_label }}"
- register: docker_list_containers_var
-
-- name: set fact # save a list of containers found by previous task to orphaned_containers var
- set_fact: orphaned_containers="{{ orphaned_containers|default([]) + item.containers }}"
- loop: "{{ docker_list_containers_var.results }}"
-
-- name: Remove orphaned containers
- docker_container:
- name: "{{ item }}"
- state: absent
- loop: "{{ orphaned_containers }}"