summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-04-19 15:12:42 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-04-22 08:49:24 +0200
commitf1f28ae67f3f2c056bf987423a26883674cbcb7b (patch)
tree1de5e8e610dbc9520defcc80cabd7df0fd4fdee7 /ansible
parent29d439ad01cb1cc187eea44acffdee54f57d35bd (diff)
[MOLECULE] Drop 'destroy' playbook for rke role
No longer required since change Ia221da6666d558e086cd24155f5bd81237d82388 Change-Id: I7ec15d63daaa3e3cdb6dbed2a4e2643bfcb99370 Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/rke/molecule/default/destroy.yml34
-rw-r--r--ansible/roles/rke/molecule/etcd_storage/molecule.yml1
2 files changed, 0 insertions, 35 deletions
diff --git a/ansible/roles/rke/molecule/default/destroy.yml b/ansible/roles/rke/molecule/default/destroy.yml
deleted file mode 100644
index 591da82e..00000000
--- a/ansible/roles/rke/molecule/default/destroy.yml
+++ /dev/null
@@ -1,34 +0,0 @@
----
-- name: Destroy
- hosts: localhost
- connection: local
- gather_facts: false
- no_log: "{{ not (lookup('env', 'MOLECULE_DEBUG') | bool or molecule_yml.provisioner.log|default(false) | bool) }}"
- tasks:
- - name: Destroy molecule instance(s)
- docker_container:
- name: "{{ item.name }}"
- docker_host: "{{ item.docker_host | default(lookup('env', 'DOCKER_HOST') or 'unix://var/run/docker.sock') }}"
- state: absent
- force_kill: "{{ item.force_kill | default(true) }}"
- # Modification: we want to clean up old volumes.
- keep_volumes: false
- register: server
- with_items: "{{ molecule_yml.platforms }}"
- async: 7200
- poll: 0
-
- - name: Wait for instance(s) deletion to complete
- async_status:
- jid: "{{ item.ansible_job_id }}"
- register: docker_jobs
- until: docker_jobs.finished
- retries: 300
- with_items: "{{ server.results }}"
-
- - name: Delete docker network(s)
- docker_network:
- name: "{{ item }}"
- docker_host: "{{ item.docker_host | default(lookup('env', 'DOCKER_HOST') or 'unix://var/run/docker.sock') }}"
- state: absent
- with_items: "{{ molecule_yml.platforms | molecule_get_docker_networks }}"
diff --git a/ansible/roles/rke/molecule/etcd_storage/molecule.yml b/ansible/roles/rke/molecule/etcd_storage/molecule.yml
index 35ad7e96..2f01df16 100644
--- a/ansible/roles/rke/molecule/etcd_storage/molecule.yml
+++ b/ansible/roles/rke/molecule/etcd_storage/molecule.yml
@@ -47,6 +47,5 @@ provisioner:
playbooks:
prepare: ../default/prepare.yml
converge: ../default/converge.yml
- destroy: ../default/destroy.yml
verifier:
name: testinfra