mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 20:38:42 +00:00
* Move licenses to LICENSES/, use SPDX-License-Identifier, mention all licenses in galaxy.yml. * ignore.txt lines cannot be empty or contain only a comment. * Cleanup. * This particular __init__.py seems to be crucial. * Try extra newline. * Markdown comments are a real mess. I hope this won't break Galaxy... * More licenses. * Add sanity test. * Skip some files, lint. * Make sure there is a copyright line everywhere. * Also check for copyright line in sanity tests. * Remove colon after 'Copyright'. * Normalize lint script. * Avoid colon after 'Copyright' in lint script. * Improve license checker. * Update README.md Co-authored-by: Maxwell G <9920591+gotmax23@users.noreply.github.com> * Remove superfluous space. * Referencing target instead of symlink Co-authored-by: Maxwell G <9920591+gotmax23@users.noreply.github.com>
39 lines
986 B
YAML
39 lines
986 B
YAML
---
|
|
# Copyright (c) Ansible Project
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
- 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/*
|
|
|
|
- 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
|