diff options
Diffstat (limited to 'test/integration/targets/docker_swarm/tasks/cleanup.yml')
-rw-r--r-- | test/integration/targets/docker_swarm/tasks/cleanup.yml | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/test/integration/targets/docker_swarm/tasks/cleanup.yml b/test/integration/targets/docker_swarm/tasks/cleanup.yml deleted file mode 100644 index 3e19bfcdb3..0000000000 --- a/test/integration/targets/docker_swarm/tasks/cleanup.yml +++ /dev/null @@ -1,35 +0,0 @@ -- name: CLEANUP | Leave Docker Swarm - docker_swarm: - state: absent - force: true - ignore_errors: yes - register: leave_swarm - -- name: CLEANUP | Kill Docker and cleanup - when: leave_swarm is failed - block: - - name: CLEANUP | Kill docker daemon - command: systemctl kill -s 9 docker - become: yes - - - name: CLEANUP | Clear out /var/lib/docker - shell: rm -rf /var/lib/docker/* - args: - warn: no - - - name: CLEANUP | Start docker daemon - service: - name: docker - state: started - become: yes - - - name: CLEANUP | Wait for docker daemon to be fully started - command: docker ps - register: result - until: result is success - retries: 10 - - - name: CLEANUP | Leave Docker Swarm - docker_swarm: - state: absent - force: true |