summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-06-05 10:54:41 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-05 10:54:41 +0000
commitc8601f0659f90fc2ca390de6d5d7682d1af190f0 (patch)
treec260007d85c8104d2d0fcb676c087c37f7e668bd /ansible
parent5930a9e5a262c0c84833bcf33b3533e603b28f9c (diff)
parent6572c426eb667be09198aa8edca7c4b320f0f60b (diff)
Merge "Remove cleanup-rancher test role"
Diffstat (limited to 'ansible')
-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 }}"