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>
60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
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: "Make sure all images are removed"
|
|
docker_image:
|
|
name: "{{ item }}"
|
|
state: absent
|
|
with_items: "{{ docker_registry_setup_inames }}"
|
|
|
|
- name: "Get registry logs"
|
|
command: "docker logs {{ docker_registry_container_name_registry }}"
|
|
register: registry_logs
|
|
no_log: yes
|
|
ignore_errors: yes
|
|
|
|
- name: "Printing registry logs"
|
|
debug:
|
|
var: registry_logs.stdout_lines
|
|
when: registry_logs is not failed
|
|
|
|
- name: "Get nginx logs for first instance"
|
|
command: "docker logs {{ docker_registry_container_name_nginx }}"
|
|
register: nginx_logs
|
|
no_log: yes
|
|
ignore_errors: yes
|
|
|
|
- name: "Get nginx logs for second instance"
|
|
command: "docker logs {{ docker_registry_container_name_nginx2 }}"
|
|
register: nginx2_logs
|
|
no_log: yes
|
|
ignore_errors: yes
|
|
|
|
- name: "Printing nginx logs for first instance"
|
|
debug:
|
|
var: nginx_logs.stdout_lines
|
|
when: nginx_logs is not failed
|
|
|
|
- name: "Printing nginx logs for second instance"
|
|
debug:
|
|
var: nginx2_logs.stdout_lines
|
|
when: nginx_logs is not failed
|
|
|
|
- name: "Make sure all containers are removed"
|
|
docker_container:
|
|
name: "{{ item }}"
|
|
state: absent
|
|
force_kill: yes
|
|
with_items: "{{ docker_registry_setup_cnames }}"
|
|
register: result
|
|
retries: 3
|
|
delay: 3
|
|
until: result is success
|
|
|
|
- name: "Make sure all volumes are removed"
|
|
command: "docker volume rm -f {{ item }}"
|
|
with_items: "{{ docker_registry_setup_vnames }}"
|
|
ignore_errors: yes
|