mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-03 02:04:14 +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
1.2 KiB
YAML
39 lines
1.2 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
|
|
|
|
# Regression test for https://github.com/ansible/ansible/pull/45700
|
|
- name: Registering container name
|
|
set_fact:
|
|
cname: "{{ cname_prefix ~ '-45700' }}"
|
|
- name: Registering container name
|
|
set_fact:
|
|
cnames: "{{ cnames + [cname] }}"
|
|
|
|
- name: Start container
|
|
docker_container:
|
|
image: "{{ docker_test_image_alpine }}"
|
|
command: '/bin/sh -c "sleep 10m"'
|
|
name: "{{ cname }}"
|
|
state: started
|
|
|
|
- name: Stop container with a lot of invalid options
|
|
docker_container:
|
|
name: "{{ cname }}"
|
|
force_kill: yes
|
|
# Some options with "invalid" values, which would
|
|
# have to be parsed. The values are "invalid" because
|
|
# the containers and networks listed here do not exist.
|
|
# This can happen because the networks are removed
|
|
# before the container is stopped (see
|
|
# https://github.com/ansible/ansible/issues/45486).
|
|
networks:
|
|
- name: "nonexistant-network-{{ (2**32) | random }}"
|
|
published_ports:
|
|
- '1:2'
|
|
- '3'
|
|
links:
|
|
- "nonexistant-container-{{ (2**32) | random }}:test"
|
|
state: absent
|