diff options
author | Michal Zegan <m.zegan@samsung.com> | 2019-06-04 12:59:58 +0200 |
---|---|---|
committer | Michal Zegan <m.zegan@samsung.com> | 2019-06-04 13:11:04 +0200 |
commit | 6572c426eb667be09198aa8edca7c4b320f0f60b (patch) | |
tree | fb427d1665034d7f2ad0f07faaeed467ea2286e6 /ansible/test/roles | |
parent | df7d7cc1294c6ea1fcab2ed4ac2ee7c375b29651 (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>
Diffstat (limited to 'ansible/test/roles')
-rw-r--r-- | ansible/test/roles/cleanup-rancher/tasks/main.yml | 18 |
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 }}" |