mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-03-17 12:23:10 +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>
42 lines
1.0 KiB
YAML
42 lines
1.0 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: Registering container and network names
|
|
set_fact:
|
|
nname_1: "{{ name_prefix ~ '-network-foo' }}"
|
|
nname_2: "{{ name_prefix ~ '-network-foobar' }}"
|
|
- name: Registering container and network names
|
|
set_fact:
|
|
dnetworks: "{{ dnetworks + [nname_1, nname_2] }}"
|
|
|
|
####################################################################
|
|
|
|
- name: Create network (superstring)
|
|
docker_network:
|
|
name: "{{ nname_2 }}"
|
|
state: present
|
|
register: networks_1
|
|
|
|
- name: Create network (substring)
|
|
docker_network:
|
|
name: "{{ nname_1 }}"
|
|
state: present
|
|
register: networks_2
|
|
|
|
- name: Cleanup
|
|
docker_network:
|
|
name: "{{ network_name }}"
|
|
state: absent
|
|
loop:
|
|
- "{{ nname_1 }}"
|
|
- "{{ nname_2 }}"
|
|
loop_control:
|
|
loop_var: network_name
|
|
|
|
- assert:
|
|
that:
|
|
- networks_1 is changed
|
|
- networks_2 is changed
|