diff options
Diffstat (limited to 'ansible/roles/destroy/tasks')
| -rw-r--r-- | ansible/roles/destroy/tasks/cleanup_containers.yml | 10 | ||||
| -rw-r--r-- | ansible/roles/destroy/tasks/cleanup_host.yml | 12 | ||||
| -rw-r--r-- | ansible/roles/destroy/tasks/cleanup_images.yml | 5 | ||||
| -rw-r--r-- | ansible/roles/destroy/tasks/copy_tools.yml | 31 | ||||
| -rw-r--r-- | ansible/roles/destroy/tasks/main.yml | 8 | ||||
| -rw-r--r-- | ansible/roles/destroy/tasks/precheck.yml | 1 |
6 files changed, 0 insertions, 67 deletions
diff --git a/ansible/roles/destroy/tasks/cleanup_containers.yml b/ansible/roles/destroy/tasks/cleanup_containers.yml deleted file mode 100644 index c6aee8ef5..000000000 --- a/ansible/roles/destroy/tasks/cleanup_containers.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -- name: Destroying all Kolla containers and volumes on compute node - environment: - COMPUTE: true - command: /tmp/kolla-cleanup/tools/cleanup-containers - when: inventory_hostname in groups['compute'] - -- name: Destroying all Kolla containers and volumes on non compute node - command: /tmp/kolla-cleanup/tools/cleanup-containers - when: inventory_hostname not in groups['compute'] diff --git a/ansible/roles/destroy/tasks/cleanup_host.yml b/ansible/roles/destroy/tasks/cleanup_host.yml deleted file mode 100644 index 228fb70bb..000000000 --- a/ansible/roles/destroy/tasks/cleanup_host.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -- name: Destroying Kolla host configuration - command: > - env enable_haproxy={{ enable_haproxy }} - kolla_internal_vip_address={{ kolla_internal_vip_address }} - kolla_external_vip_address={{ kolla_external_vip_address }} - /tmp/kolla-cleanup/tools/cleanup-host - -- name: Destroying kolla-cleanup folder - file: - path: /tmp/kolla-cleanup - state: absent diff --git a/ansible/roles/destroy/tasks/cleanup_images.yml b/ansible/roles/destroy/tasks/cleanup_images.yml deleted file mode 100644 index e6b8d6073..000000000 --- a/ansible/roles/destroy/tasks/cleanup_images.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- name: Destroying Kolla images - command: /tmp/kolla-cleanup/tools/cleanup-images - when: - - destroy_include_images | bool diff --git a/ansible/roles/destroy/tasks/copy_tools.yml b/ansible/roles/destroy/tasks/copy_tools.yml deleted file mode 100644 index 6a990e197..000000000 --- a/ansible/roles/destroy/tasks/copy_tools.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -- name: Creating /kolla-cleanup/tools directory on node - file: - state: directory - path: /tmp/kolla-cleanup/tools - -- name: Copying validate-docker-execute.sh file - copy: - src: ../tools/validate-docker-execute.sh - dest: /tmp/kolla-cleanup/tools - mode: 0755 - -- name: Copying cleanup-containers file - copy: - src: ../tools/cleanup-containers - dest: /tmp/kolla-cleanup/tools - mode: 0755 - -- name: Copying cleanup-host file - copy: - src: ../tools/cleanup-host - dest: /tmp/kolla-cleanup/tools - mode: 0755 - -- name: Copying cleanup-images file - copy: - src: ../tools/cleanup-images - dest: /tmp/kolla-cleanup/tools - mode: 0755 - when: - - destroy_include_images | bool diff --git a/ansible/roles/destroy/tasks/main.yml b/ansible/roles/destroy/tasks/main.yml deleted file mode 100644 index 13b59b7fb..000000000 --- a/ansible/roles/destroy/tasks/main.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- include: copy_tools.yml - -- include: cleanup_containers.yml - -- include: cleanup_images.yml - -- include: cleanup_host.yml diff --git a/ansible/roles/destroy/tasks/precheck.yml b/ansible/roles/destroy/tasks/precheck.yml deleted file mode 100644 index ed97d539c..000000000 --- a/ansible/roles/destroy/tasks/precheck.yml +++ /dev/null @@ -1 +0,0 @@ ---- |
