From a4539a309e70dff5d50ff2712cbab8f3ff36aad6 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Wed, 20 Jul 2022 07:45:33 +0200 Subject: [PATCH] Move licenses to LICENSES/, use SPDX-License-Identifier, mention all licenses in galaxy.yml (#430) * 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> --- .azure-pipelines/README.md | 6 + .azure-pipelines/azure-pipelines.yml | 5 + .../scripts/aggregate-coverage.sh | 4 + .azure-pipelines/scripts/combine-coverage.py | 4 + .azure-pipelines/scripts/process-results.sh | 4 + .azure-pipelines/scripts/publish-codecov.py | 4 + .azure-pipelines/scripts/report-coverage.sh | 4 + .azure-pipelines/scripts/run-tests.sh | 4 + .azure-pipelines/scripts/time-command.py | 4 + .azure-pipelines/templates/coverage.yml | 4 + .azure-pipelines/templates/matrix.yml | 4 + .azure-pipelines/templates/test.yml | 4 + .github/patchback.yml | 4 + .github/workflows/docs-pr.yml | 5 + .github/workflows/ee.yml | 4 + .gitignore | 4 + Apache-2.0.txt => LICENSES/Apache-2.0.txt | 0 LICENSES/GPL-3.0-or-later.txt | 1 + README.md | 14 ++- changelogs/config.yaml | 5 + changelogs/fragments/430-licenses.yml | 2 + docs/docsite/extra-docs.yml | 4 + docs/docsite/links.yml | 4 + docs/docsite/rst/scenario_guide.rst | 5 + galaxy.yml | 10 +- meta/ee-bindep.txt | 3 + meta/ee-requirements.txt | 4 + meta/execution-environment.yml | 4 + meta/runtime.yml | 4 + plugins/connection/docker.py | 3 +- plugins/connection/docker_api.py | 3 +- plugins/connection/nsenter.py | 9 +- plugins/doc_fragments/docker.py | 4 +- plugins/inventory/docker_containers.py | 3 +- plugins/inventory/docker_machine.py | 3 +- plugins/inventory/docker_swarm.py | 3 +- plugins/module_utils/__init__.py | 0 plugins/module_utils/_api/_import_helper.py | 3 +- plugins/module_utils/_api/api/client.py | 3 +- plugins/module_utils/_api/api/daemon.py | 3 +- plugins/module_utils/_api/auth.py | 3 +- plugins/module_utils/_api/constants.py | 3 +- .../_api/credentials/constants.py | 3 +- .../module_utils/_api/credentials/errors.py | 3 +- .../module_utils/_api/credentials/store.py | 3 +- .../module_utils/_api/credentials/utils.py | 3 +- plugins/module_utils/_api/errors.py | 3 +- plugins/module_utils/_api/tls.py | 3 +- .../_api/transport/basehttpadapter.py | 3 +- .../module_utils/_api/transport/npipeconn.py | 3 +- .../_api/transport/npipesocket.py | 3 +- .../module_utils/_api/transport/sshconn.py | 3 +- .../module_utils/_api/transport/ssladapter.py | 3 +- .../module_utils/_api/transport/unixconn.py | 3 +- plugins/module_utils/_api/types/daemon.py | 3 +- plugins/module_utils/_api/utils/build.py | 3 +- plugins/module_utils/_api/utils/config.py | 3 +- plugins/module_utils/_api/utils/decorators.py | 3 +- plugins/module_utils/_api/utils/fnmatch.py | 3 +- .../module_utils/_api/utils/json_stream.py | 3 +- plugins/module_utils/_api/utils/ports.py | 3 +- plugins/module_utils/_api/utils/proxy.py | 3 +- plugins/module_utils/_api/utils/socket.py | 3 +- plugins/module_utils/_api/utils/utils.py | 3 +- plugins/module_utils/common.py | 3 +- plugins/module_utils/common_api.py | 3 +- plugins/module_utils/module_container/base.py | 3 +- .../module_container/docker_api.py | 3 +- .../module_utils/module_container/module.py | 3 +- plugins/module_utils/socket_handler.py | 3 +- plugins/module_utils/socket_helper.py | 3 +- plugins/module_utils/swarm.py | 7 +- plugins/module_utils/util.py | 3 +- plugins/module_utils/version.py | 5 +- plugins/modules/current_container_facts.py | 7 +- plugins/modules/docker_compose.py | 3 +- plugins/modules/docker_config.py | 3 +- plugins/modules/docker_container.py | 3 +- plugins/modules/docker_container_exec.py | 3 +- plugins/modules/docker_container_info.py | 3 +- plugins/modules/docker_host_info.py | 5 +- plugins/modules/docker_image.py | 3 +- plugins/modules/docker_image_info.py | 3 +- plugins/modules/docker_image_load.py | 3 +- plugins/modules/docker_login.py | 9 +- plugins/modules/docker_network.py | 3 +- plugins/modules/docker_network_info.py | 3 +- plugins/modules/docker_node.py | 5 +- plugins/modules/docker_node_info.py | 5 +- plugins/modules/docker_plugin.py | 7 +- plugins/modules/docker_prune.py | 3 +- plugins/modules/docker_secret.py | 3 +- plugins/modules/docker_stack.py | 3 +- plugins/modules/docker_stack_info.py | 3 +- plugins/modules/docker_stack_task_info.py | 3 +- plugins/modules/docker_swarm.py | 3 +- plugins/modules/docker_swarm_info.py | 5 +- plugins/modules/docker_swarm_service.py | 5 +- plugins/modules/docker_swarm_service_info.py | 5 +- plugins/modules/docker_volume.py | 3 +- plugins/modules/docker_volume_info.py | 3 +- plugins/plugin_utils/common.py | 3 +- plugins/plugin_utils/common_api.py | 3 +- plugins/plugin_utils/socket_handler.py | 3 +- tests/config.yml | 4 + tests/ee/all.yml | 5 + .../current_container_facts/tasks/main.yml | 4 + tests/ee/roles/docker_plain/tasks/main.yml | 4 + tests/ee/roles/docker_stack/tasks/main.yml | 4 + tests/integration/targets/connection/aliases | 4 + tests/integration/targets/connection/test.sh | 3 + .../targets/connection/test_connection.yml | 5 + .../targets/connection_docker/aliases | 4 + .../targets/connection_docker/meta/main.yml | 4 + .../targets/connection_docker/runme.sh | 3 + .../targets/connection_docker/setup.yml | 4 + .../targets/connection_docker/shutdown.yml | 4 + .../targets/connection_docker_api/aliases | 4 + .../connection_docker_api/meta/main.yml | 4 + .../targets/connection_docker_api/runme.sh | 3 + .../targets/connection_docker_api/setup.yml | 4 + .../connection_docker_api/shutdown.yml | 4 + .../targets/connection_nsenter/aliases | 4 + .../targets/connection_nsenter/meta/main.yml | 4 + .../targets/connection_nsenter/runme.sh | 3 + .../targets/connection_nsenter/setup.yml | 4 + .../targets/connection_nsenter/shutdown.yml | 4 + .../targets/connection_posix/aliases | 4 + .../targets/connection_posix/test.sh | 3 + .../targets/docker_compose/aliases | 4 + .../targets/docker_compose/meta/main.yml | 4 + .../targets/docker_compose/tasks/main.yml | 4 + .../targets/docker_compose/tasks/run-test.yml | 4 + .../docker_compose/tasks/tests/options.yml | 4 + .../docker_compose/tasks/tests/start-stop.yml | 4 + .../integration/targets/docker_config/aliases | 4 + .../targets/docker_config/meta/main.yml | 4 + .../targets/docker_config/tasks/main.yml | 4 + .../tasks/test_docker_config.yml | 4 + .../targets/docker_container/aliases | 4 + .../targets/docker_container/files/env-file | 4 + .../filter_plugins/ipaddr_tools.py | 19 +-- .../targets/docker_container/meta/main.yml | 4 + .../targets/docker_container/tasks/main.yml | 4 + .../docker_container/tasks/run-test.yml | 4 + .../tasks/tests/comparisons.yml | 4 + .../tasks/tests/compatibility.yml | 4 + .../tasks/tests/image-ids.yml | 4 + .../tasks/tests/mounts-volumes.yml | 4 + .../docker_container/tasks/tests/network.yml | 4 + .../docker_container/tasks/tests/options.yml | 4 + .../docker_container/tasks/tests/ports.yml | 4 + .../regression-45700-dont-parse-on-absent.yml | 4 + .../tasks/tests/start-stop.yml | 4 + .../docker_container/tasks/tests/update.yml | 4 + .../targets/docker_container_exec/aliases | 4 + .../docker_container_exec/meta/main.yml | 4 + .../docker_container_exec/tasks/main.yml | 4 + .../targets/docker_container_info/aliases | 4 + .../docker_container_info/meta/main.yml | 4 + .../docker_container_info/tasks/main.yml | 4 + .../targets/docker_host_info/aliases | 4 + .../targets/docker_host_info/meta/main.yml | 4 + .../targets/docker_host_info/tasks/main.yml | 5 + .../docker_host_info/tasks/test_host_info.yml | 4 + .../integration/targets/docker_image/aliases | 4 + .../targets/docker_image/meta/main.yml | 4 + .../targets/docker_image/tasks/main.yml | 5 + .../targets/docker_image/tasks/run-test.yml | 4 + .../targets/docker_image/tasks/test.yml | 4 + .../docker_image/tasks/tests/basic.yml | 4 + .../docker_image/tasks/tests/docker_image.yml | 4 + .../docker_image/tasks/tests/options.yml | 4 + .../targets/docker_image/templates/Dockerfile | 4 + .../docker_image/templates/EtcHostsDockerfile | 4 + .../docker_image/templates/MyDockerfile | 4 + .../docker_image/templates/StagedDockerfile | 4 + .../targets/docker_image_info/aliases | 4 + .../targets/docker_image_info/meta/main.yml | 4 + .../targets/docker_image_info/tasks/main.yml | 4 + .../targets/docker_image_load/aliases | 4 + .../targets/docker_image_load/meta/main.yml | 4 + .../targets/docker_image_load/tasks/main.yml | 5 + .../docker_image_load/tasks/run-test.yml | 4 + .../targets/docker_image_load/tasks/test.yml | 4 + .../docker_image_load/tasks/tests/basic.yml | 4 + .../integration/targets/docker_login/aliases | 4 + .../targets/docker_login/meta/main.yml | 4 + .../targets/docker_login/tasks/main.yml | 4 + .../targets/docker_login/tasks/run-test.yml | 4 + .../targets/docker_login/tasks/test.yml | 4 + .../docker_login/tasks/tests/docker_login.yml | 4 + .../tasks/tests/multiple-servers.yml | 4 + .../targets/docker_network/aliases | 4 + .../targets/docker_network/meta/main.yml | 4 + .../targets/docker_network/tasks/main.yml | 4 + .../targets/docker_network/tasks/run-test.yml | 4 + .../docker_network/tasks/tests/basic.yml | 4 + .../docker_network/tasks/tests/ipam.yml | 4 + .../docker_network/tasks/tests/options.yml | 4 + .../docker_network/tasks/tests/overlay.yml | 4 + .../docker_network/tasks/tests/substring.yml | 4 + .../targets/docker_network_info/aliases | 4 + .../targets/docker_network_info/meta/main.yml | 4 + .../docker_network_info/tasks/main.yml | 4 + tests/integration/targets/docker_node/aliases | 4 + .../targets/docker_node/meta/main.yml | 4 + .../targets/docker_node/tasks/main.yml | 4 + .../targets/docker_node/tasks/test_node.yml | 4 + .../targets/docker_node_info/aliases | 4 + .../targets/docker_node_info/meta/main.yml | 4 + .../targets/docker_node_info/tasks/main.yml | 5 + .../docker_node_info/tasks/test_node_info.yml | 4 + .../integration/targets/docker_plugin/aliases | 4 + .../targets/docker_plugin/meta/main.yml | 4 + .../targets/docker_plugin/tasks/main.yaml | 5 + .../targets/docker_plugin/tasks/run-test.yml | 4 + .../docker_plugin/tasks/tests/basic.yml | 4 + .../tasks/tests/basic_with_alias.yml | 4 + .../integration/targets/docker_prune/aliases | 4 + .../targets/docker_prune/meta/main.yml | 4 + .../targets/docker_prune/tasks/main.yml | 4 + .../integration/targets/docker_secret/aliases | 4 + .../targets/docker_secret/meta/main.yml | 4 + .../targets/docker_secret/tasks/main.yml | 5 + .../docker_secret/tasks/test_secrets.yml | 4 + .../integration/targets/docker_stack/aliases | 4 + .../targets/docker_stack/meta/main.yml | 4 + .../targets/docker_stack/tasks/main.yml | 5 + .../targets/docker_stack/tasks/test_stack.yml | 4 + .../templates/stack_compose_base.yml | 5 + .../templates/stack_compose_overrides.yml | 5 + .../targets/docker_stack/vars/main.yml | 5 + .../targets/docker_stack_info/aliases | 4 + .../targets/docker_stack_info/meta/main.yml | 4 + .../targets/docker_stack_info/tasks/main.yml | 5 + .../tasks/test_stack_info.yml | 4 + .../templates/stack_compose_base.yml | 5 + .../templates/stack_compose_overrides.yml | 5 + .../targets/docker_stack_info/vars/main.yml | 5 + .../targets/docker_stack_task_info/aliases | 4 + .../docker_stack_task_info/meta/main.yml | 4 + .../docker_stack_task_info/tasks/main.yml | 5 + .../tasks/test_stack_task_info.yml | 4 + .../templates/stack_compose_base.yml | 5 + .../templates/stack_compose_overrides.yml | 5 + .../docker_stack_task_info/vars/main.yml | 5 + .../integration/targets/docker_swarm/aliases | 4 + .../targets/docker_swarm/meta/main.yml | 4 + .../targets/docker_swarm/tasks/cleanup.yml | 5 + .../targets/docker_swarm/tasks/main.yml | 5 + .../targets/docker_swarm/tasks/run-test.yml | 4 + .../docker_swarm/tasks/tests/basic.yml | 5 + .../docker_swarm/tasks/tests/options-ca.yml | 5 + .../docker_swarm/tasks/tests/options.yml | 5 + .../tasks/tests/remote-addr-pool.yml | 5 + .../targets/docker_swarm_info/aliases | 4 + .../targets/docker_swarm_info/meta/main.yml | 4 + .../targets/docker_swarm_info/tasks/main.yml | 5 + .../tasks/test_swarm_info.yml | 4 + .../targets/docker_swarm_service/aliases | 4 + .../docker_swarm_service/files/env-file-1 | 4 + .../docker_swarm_service/files/env-file-2 | 4 + .../docker_swarm_service/meta/main.yml | 4 + .../docker_swarm_service/tasks/main.yml | 4 + .../docker_swarm_service/tasks/run-test.yml | 4 + .../tasks/tests/configs.yml | 3 + .../tasks/tests/logging.yml | 3 + .../docker_swarm_service/tasks/tests/misc.yml | 4 + .../tasks/tests/mounts.yml | 5 + .../tasks/tests/networks.yml | 3 + .../tasks/tests/options.yml | 3 + .../tasks/tests/placement.yml | 3 + .../tasks/tests/resources.yml | 3 + .../tasks/tests/restart_config.yml | 3 + .../tasks/tests/rollback_config.yml | 3 + .../tasks/tests/secrets.yml | 3 + .../tasks/tests/update_config.yml | 3 + .../docker_swarm_service/vars/main.yml | 3 + .../targets/docker_swarm_service_info/aliases | 4 + .../docker_swarm_service_info/meta/main.yml | 4 + .../docker_swarm_service_info/tasks/main.yml | 4 + .../tasks/test_docker_swarm_service_info.yml | 3 + .../integration/targets/docker_volume/aliases | 4 + .../targets/docker_volume/meta/main.yml | 4 + .../targets/docker_volume/tasks/main.yml | 4 + .../targets/docker_volume/tasks/run-test.yml | 4 + .../docker_volume/tasks/tests/basic.yml | 4 + .../targets/docker_volume_info/aliases | 4 + .../targets/docker_volume_info/meta/main.yml | 4 + .../targets/docker_volume_info/tasks/main.yml | 4 + .../targets/generic_ssh_connection/aliases | 4 + .../generic_ssh_connection/meta/main.yml | 4 + .../generic_ssh_connection/tasks/main.yml | 4 + .../inventory_docker_containers/aliases | 4 + .../inventory_1.docker.yml | 5 + .../inventory_2.docker.yml | 5 + .../inventory_docker_containers/meta/main.yml | 4 + .../playbooks/docker_cleanup.yml | 4 + .../playbooks/docker_setup.yml | 4 + .../playbooks/test_inventory_1.yml | 4 + .../playbooks/test_inventory_2.yml | 4 + .../inventory_docker_containers/runme.sh | 3 + .../targets/inventory_docker_machine/aliases | 4 + .../inventory_docker_machine/docker-machine | 4 + .../inventory_1.docker_machine.yml | 5 + .../inventory_2.docker_machine.yml | 5 + .../inventory_3.docker_machine.yml | 5 + .../inventory_docker_machine/meta/main.yml | 4 + .../playbooks/pre-setup.yml | 4 + .../playbooks/setup.yml | 4 + .../playbooks/teardown.yml | 4 + .../playbooks/test_inventory_1.yml | 5 + .../targets/inventory_docker_machine/runme.sh | 3 + .../teardown.docker_machine.yml | 5 + .../targets/inventory_docker_swarm/aliases | 4 + .../inventory_1.docker_swarm.yml | 5 + .../inventory_2.docker_swarm.yml | 5 + .../inventory_docker_swarm/meta/main.yml | 4 + .../playbooks/swarm_cleanup.yml | 4 + .../playbooks/swarm_setup.yml | 4 + .../playbooks/test_inventory_1.yml | 4 + .../playbooks/test_inventory_2.yml | 4 + .../targets/inventory_docker_swarm/runme.sh | 3 + .../integration/targets/setup_docker/aliases | 4 + .../targets/setup_docker/defaults/main.yml | 4 + .../targets/setup_docker/handlers/main.yml | 5 + .../targets/setup_docker/meta/main.yml | 5 + .../targets/setup_docker/tasks/Alpine.yml | 4 + .../targets/setup_docker/tasks/Archlinux.yml | 4 + .../targets/setup_docker/tasks/Debian.yml | 4 + .../targets/setup_docker/tasks/Fedora.yml | 4 + .../targets/setup_docker/tasks/RedHat-7.yml | 4 + .../targets/setup_docker/tasks/RedHat-8.yml | 4 + .../targets/setup_docker/tasks/RedHat-9.yml | 4 + .../targets/setup_docker/tasks/Suse.yml | 4 + .../targets/setup_docker/tasks/main.yml | 4 + .../targets/setup_docker/vars/Debian.yml | 4 + .../targets/setup_docker/vars/Fedora.yml | 3 + .../targets/setup_docker/vars/RedHat-7.yml | 4 + .../targets/setup_docker/vars/RedHat-8.yml | 4 + .../targets/setup_docker/vars/RedHat-9.yml | 4 + .../targets/setup_docker/vars/Suse.yml | 4 + .../targets/setup_docker/vars/Ubuntu-14.yml | 4 + .../targets/setup_docker/vars/Ubuntu-22.yml | 4 + .../targets/setup_docker/vars/default.yml | 3 + .../targets/setup_docker/vars/main.env | 4 + .../targets/setup_docker/vars/main.yml | 4 + .../setup_docker_compose/defaults/main.yml | 4 + .../setup_docker_compose/meta/main.yml | 5 + .../setup_docker_compose/tasks/Alpine.yml | 4 + .../setup_docker_compose/tasks/Archlinux.yml | 4 + .../setup_docker_compose/tasks/Debian.yml | 4 + .../setup_docker_compose/tasks/Fedora.yml | 4 + .../setup_docker_compose/tasks/RedHat-7.yml | 4 + .../setup_docker_compose/tasks/RedHat-8.yml | 4 + .../setup_docker_compose/tasks/RedHat-9.yml | 4 + .../setup_docker_compose/tasks/Suse.yml | 4 + .../setup_docker_compose/tasks/main.yml | 4 + .../setup_docker_compose/tasks/setup.yml | 4 + .../setup_docker_compose/vars/CentOS-8.yml | 4 + .../setup_docker_compose/vars/RedHat-7.yml | 4 + .../setup_docker_compose/vars/RedHat-8.yml | 4 + .../setup_docker_compose/vars/RedHat-9.yml | 4 + .../setup_docker_compose/vars/Suse-py2.yml | 4 + .../setup_docker_compose/vars/Suse-py3.yml | 4 + .../setup_docker_compose/vars/Ubuntu-16.yml | 4 + .../setup_docker_compose/vars/Ubuntu-18.yml | 4 + .../setup_docker_compose/vars/Ubuntu.yml | 4 + .../setup_docker_compose/vars/default.yml | 3 + .../targets/setup_docker_registry/aliases | 4 + .../setup_docker_registry/files/nginx.conf | 4 + .../files/nginx.htpasswd | 4 + .../handlers/cleanup.yml | 4 + .../setup_docker_registry/handlers/main.yml | 4 + .../setup_docker_registry/meta/main.yml | 5 + .../setup_docker_registry/tasks/main.yml | 4 + .../tasks/setup-frontend.yml | 4 + .../setup_docker_registry/tasks/setup.yml | 4 + .../targets/setup_epel/tasks/main.yml | 5 + .../targets/setup_openssl/meta/main.yml | 5 + .../targets/setup_openssl/tasks/main.yml | 4 + .../targets/setup_openssl/vars/Alpine.yml | 4 + .../targets/setup_openssl/vars/Archlinux.yml | 4 + .../targets/setup_openssl/vars/Debian.yml | 4 + .../targets/setup_openssl/vars/FreeBSD.yml | 4 + .../targets/setup_openssl/vars/RedHat.yml | 4 + .../targets/setup_openssl/vars/Suse.yml | 4 + .../targets/setup_paramiko/meta/main.yml | 4 + .../targets/setup_paramiko/tasks/main.yml | 4 + .../targets/setup_pkg_mgr/tasks/main.yml | 4 + .../targets/setup_remote_constraints/aliases | 4 + .../setup_remote_constraints/meta/main.yml | 5 + .../setup_remote_constraints/tasks/main.yml | 5 + .../setup_remote_tmp_dir/handlers/main.yml | 5 + .../tasks/default-cleanup.yml | 5 + .../setup_remote_tmp_dir/tasks/default.yml | 5 + .../setup_remote_tmp_dir/tasks/main.yml | 5 + tests/requirements.yml | 5 + tests/sanity/extra/extra-docs.py | 3 +- tests/sanity/extra/licenses.json | 4 + tests/sanity/extra/licenses.py | 112 ++++++++++++++++++ tests/sanity/extra/no-unwanted-files.py | 3 +- tests/unit/compat/builtins.py | 19 +-- tests/unit/compat/mock.py | 19 +-- tests/unit/compat/unittest.py | 19 +-- tests/unit/plugins/connection/test_docker.py | 19 +-- .../inventory/test_docker_containers.py | 3 +- tests/unit/plugins/module_utils/__init__.py | 0 .../module_utils/_api/api/test_client.py | 3 +- .../plugins/module_utils/_api/fake_api.py | 3 +- .../plugins/module_utils/_api/fake_stat.py | 3 +- .../plugins/module_utils/_api/test_auth.py | 3 +- .../plugins/module_utils/_api/test_errors.py | 3 +- .../_api/transport/test_sshconn.py | 3 +- .../_api/transport/test_ssladapter.py | 3 +- .../module_utils/_api/utils/test_build.py | 3 +- .../module_utils/_api/utils/test_config.py | 3 +- .../_api/utils/test_decorators.py | 3 +- .../_api/utils/test_json_stream.py | 3 +- .../module_utils/_api/utils/test_ports.py | 3 +- .../module_utils/_api/utils/test_proxy.py | 3 +- .../module_utils/_api/utils/test_utils.py | 3 +- .../_api/utils/testdata/certs/ca.pem | 7 ++ .../_api/utils/testdata/certs/cert.pem | 7 ++ .../_api/utils/testdata/certs/key.pem | 7 ++ tests/unit/plugins/module_utils/test_util.py | 4 + tests/unit/plugins/modules/__init__.py | 0 tests/unit/plugins/modules/conftest.py | 3 +- .../plugins/modules/test_docker_network.py | 4 + .../modules/test_docker_swarm_service.py | 4 + tests/unit/requirements.txt | 4 + tests/utils/constraints.txt | 4 + tests/utils/shippable/cloud.sh | 3 + tests/utils/shippable/linux-community.sh | 3 + tests/utils/shippable/linux.sh | 3 + tests/utils/shippable/remote.sh | 3 + tests/utils/shippable/sanity.sh | 3 + tests/utils/shippable/shippable.sh | 3 + tests/utils/shippable/units.sh | 3 + 440 files changed, 1725 insertions(+), 194 deletions(-) rename Apache-2.0.txt => LICENSES/Apache-2.0.txt (100%) create mode 120000 LICENSES/GPL-3.0-or-later.txt create mode 100644 changelogs/fragments/430-licenses.yml delete mode 100644 plugins/module_utils/__init__.py create mode 100644 tests/sanity/extra/licenses.json create mode 100755 tests/sanity/extra/licenses.py delete mode 100644 tests/unit/plugins/module_utils/__init__.py delete mode 100644 tests/unit/plugins/modules/__init__.py diff --git a/.azure-pipelines/README.md b/.azure-pipelines/README.md index 385e70ba..9e8ad741 100644 --- a/.azure-pipelines/README.md +++ b/.azure-pipelines/README.md @@ -1,3 +1,9 @@ + + ## Azure Pipelines Configuration Please see the [Documentation](https://github.com/ansible/community/wiki/Testing:-Azure-Pipelines) for more information. diff --git a/.azure-pipelines/azure-pipelines.yml b/.azure-pipelines/azure-pipelines.yml index 092b8137..338a55b2 100644 --- a/.azure-pipelines/azure-pipelines.yml +++ b/.azure-pipelines/azure-pipelines.yml @@ -1,3 +1,8 @@ +--- +# 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 + trigger: batch: true branches: diff --git a/.azure-pipelines/scripts/aggregate-coverage.sh b/.azure-pipelines/scripts/aggregate-coverage.sh index 51fae879..0ccef353 100755 --- a/.azure-pipelines/scripts/aggregate-coverage.sh +++ b/.azure-pipelines/scripts/aggregate-coverage.sh @@ -1,6 +1,10 @@ #!/usr/bin/env bash # Aggregate code coverage results for later processing. +# 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 + set -o pipefail -eu agent_temp_directory="$1" diff --git a/.azure-pipelines/scripts/combine-coverage.py b/.azure-pipelines/scripts/combine-coverage.py index 506ade64..3b2fd993 100755 --- a/.azure-pipelines/scripts/combine-coverage.py +++ b/.azure-pipelines/scripts/combine-coverage.py @@ -1,4 +1,8 @@ #!/usr/bin/env python +# 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 + """ Combine coverage data from multiple jobs, keeping the data only from the most recent attempt from each job. Coverage artifacts must be named using the format: "Coverage $(System.JobAttempt) {StableUniqueNameForEachJob}" diff --git a/.azure-pipelines/scripts/process-results.sh b/.azure-pipelines/scripts/process-results.sh index f3f1d1ba..1a5d79ff 100755 --- a/.azure-pipelines/scripts/process-results.sh +++ b/.azure-pipelines/scripts/process-results.sh @@ -1,6 +1,10 @@ #!/usr/bin/env bash # Check the test results and set variables for use in later steps. +# 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 + set -o pipefail -eu if [[ "$PWD" =~ /ansible_collections/ ]]; then diff --git a/.azure-pipelines/scripts/publish-codecov.py b/.azure-pipelines/scripts/publish-codecov.py index ab947f98..58e32f6d 100755 --- a/.azure-pipelines/scripts/publish-codecov.py +++ b/.azure-pipelines/scripts/publish-codecov.py @@ -1,4 +1,8 @@ #!/usr/bin/env python +# 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 + """ Upload code coverage reports to codecov.io. Multiple coverage files from multiple languages are accepted and aggregated after upload. diff --git a/.azure-pipelines/scripts/report-coverage.sh b/.azure-pipelines/scripts/report-coverage.sh index 08d1b60a..e8d82c74 100755 --- a/.azure-pipelines/scripts/report-coverage.sh +++ b/.azure-pipelines/scripts/report-coverage.sh @@ -1,6 +1,10 @@ #!/usr/bin/env bash # Generate code coverage reports for uploading to Azure Pipelines and codecov.io. +# 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 + set -o pipefail -eu PATH="${PWD}/bin:${PATH}" diff --git a/.azure-pipelines/scripts/run-tests.sh b/.azure-pipelines/scripts/run-tests.sh index a947fdf0..4ed20d55 100755 --- a/.azure-pipelines/scripts/run-tests.sh +++ b/.azure-pipelines/scripts/run-tests.sh @@ -1,6 +1,10 @@ #!/usr/bin/env bash # Configure the test environment and run the tests. +# 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 + set -o pipefail -eu entry_point="$1" diff --git a/.azure-pipelines/scripts/time-command.py b/.azure-pipelines/scripts/time-command.py index 5e8eb8d4..85a7c3c1 100755 --- a/.azure-pipelines/scripts/time-command.py +++ b/.azure-pipelines/scripts/time-command.py @@ -1,4 +1,8 @@ #!/usr/bin/env python +# 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 + """Prepends a relative timestamp to each input line from stdin and writes it to stdout.""" from __future__ import (absolute_import, division, print_function) diff --git a/.azure-pipelines/templates/coverage.yml b/.azure-pipelines/templates/coverage.yml index 1b36ea45..75084511 100644 --- a/.azure-pipelines/templates/coverage.yml +++ b/.azure-pipelines/templates/coverage.yml @@ -1,3 +1,7 @@ +# 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 + # This template adds a job for processing code coverage data. # It will upload results to Azure Pipelines and codecov.io. # Use it from a job stage that completes after all other jobs have completed. diff --git a/.azure-pipelines/templates/matrix.yml b/.azure-pipelines/templates/matrix.yml index 4e9555dd..85a869a8 100644 --- a/.azure-pipelines/templates/matrix.yml +++ b/.azure-pipelines/templates/matrix.yml @@ -1,3 +1,7 @@ +# 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 + # This template uses the provided targets and optional groups to generate a matrix which is then passed to the test template. # If this matrix template does not provide the required functionality, consider using the test template directly instead. diff --git a/.azure-pipelines/templates/test.yml b/.azure-pipelines/templates/test.yml index 5250ed80..90501327 100644 --- a/.azure-pipelines/templates/test.yml +++ b/.azure-pipelines/templates/test.yml @@ -1,3 +1,7 @@ +# 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 + # This template uses the provided list of jobs to create test one or more test jobs. # It can be used directly if needed, or through the matrix template. diff --git a/.github/patchback.yml b/.github/patchback.yml index 33ad6e84..5ee7812e 100644 --- a/.github/patchback.yml +++ b/.github/patchback.yml @@ -1,4 +1,8 @@ --- +# 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 + backport_branch_prefix: patchback/backports/ backport_label_prefix: backport- target_branch_prefix: stable- diff --git a/.github/workflows/docs-pr.yml b/.github/workflows/docs-pr.yml index e82f29e0..5f561b12 100644 --- a/.github/workflows/docs-pr.yml +++ b/.github/workflows/docs-pr.yml @@ -1,3 +1,8 @@ +--- +# 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: Collection Docs concurrency: group: docs-${{ github.head_ref }} diff --git a/.github/workflows/ee.yml b/.github/workflows/ee.yml index 8ad9838d..6bbb361d 100644 --- a/.github/workflows/ee.yml +++ b/.github/workflows/ee.yml @@ -1,4 +1,8 @@ --- +# 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: execution environment on: # Run CI against all pushes (direct commits, also merged PRs), Pull Requests diff --git a/.gitignore b/.gitignore index 740c8115..8e398ff2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# 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 + /tests/output/ /changelogs/.plugin-cache.yaml diff --git a/Apache-2.0.txt b/LICENSES/Apache-2.0.txt similarity index 100% rename from Apache-2.0.txt rename to LICENSES/Apache-2.0.txt diff --git a/LICENSES/GPL-3.0-or-later.txt b/LICENSES/GPL-3.0-or-later.txt new file mode 120000 index 00000000..012065c8 --- /dev/null +++ b/LICENSES/GPL-3.0-or-later.txt @@ -0,0 +1 @@ +../COPYING \ No newline at end of file diff --git a/README.md b/README.md index 347c448a..b4feb304 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ + + # Docker Community Collection [![Doc](https://img.shields.io/badge/docs-brightgreen.svg)](https://docs.ansible.com/ansible/latest/collections/community/docker/) @@ -109,6 +115,10 @@ See the [changelog](https://github.com/ansible-collections/community.docker/tree ## Licensing -GNU General Public License v3.0 or later. +This collection is primarily licensed and distributed as a whole under the GNU General Public License v3.0 or later. -See [COPYING](https://www.gnu.org/licenses/gpl-3.0.txt) to see the full text. +See [LICENSES/GPL-3.0-or-later.txt](https://github.com/ansible-collections/community.docker/blob/main/COPYING) for the full text. + +Parts of the collection are licensed under the [Apache 2.0 license](https://github.com/ansible-collections/community.docker/blob/main/LICENSES/Apache-2.0.txt). This mostly applies to files vendored from the [Docker SDK for Python](https://github.com/docker/docker-py/). + +Most files in the collection that are not automatically generated have a machine readable `SDPX-License-Identifier:` comment denoting its respective license(s). diff --git a/changelogs/config.yaml b/changelogs/config.yaml index 120c7a5b..1c0c2d20 100644 --- a/changelogs/config.yaml +++ b/changelogs/config.yaml @@ -1,3 +1,8 @@ +--- +# 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 + changelog_filename_template: ../CHANGELOG.rst changelog_filename_version_depth: 0 changes_file: changelog.yaml diff --git a/changelogs/fragments/430-licenses.yml b/changelogs/fragments/430-licenses.yml new file mode 100644 index 00000000..34f279cd --- /dev/null +++ b/changelogs/fragments/430-licenses.yml @@ -0,0 +1,2 @@ +minor_changes: + - "All software licenses are now in the ``LICENSES/`` directory of the collection root. Moreover, ``SPDX-License-Identifier:`` is used to declare the applicable license for every file that is not automatically generated (https://github.com/ansible-collections/community.docker/pull/430)." diff --git a/docs/docsite/extra-docs.yml b/docs/docsite/extra-docs.yml index 969d8d86..c5047369 100644 --- a/docs/docsite/extra-docs.yml +++ b/docs/docsite/extra-docs.yml @@ -1,4 +1,8 @@ --- +# 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 + sections: - title: Scenario Guide toctree: diff --git a/docs/docsite/links.yml b/docs/docsite/links.yml index ae77aa7c..8dbcfeca 100644 --- a/docs/docsite/links.yml +++ b/docs/docsite/links.yml @@ -1,4 +1,8 @@ --- +# 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 + edit_on_github: repository: ansible-collections/community.docker branch: main diff --git a/docs/docsite/rst/scenario_guide.rst b/docs/docsite/rst/scenario_guide.rst index 65ef71e0..e4b84431 100644 --- a/docs/docsite/rst/scenario_guide.rst +++ b/docs/docsite/rst/scenario_guide.rst @@ -1,3 +1,8 @@ +.. + 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 + .. _ansible_collections.community.docker.docsite.scenario_guide: Docker Guide diff --git a/galaxy.yml b/galaxy.yml index 12e2b554..46ef1bb4 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,3 +1,8 @@ +--- +# 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 + # See https://docs.ansible.com/ansible/latest/dev_guide/collections_galaxy_meta.html namespace: community @@ -7,7 +12,10 @@ readme: README.md authors: - Ansible Docker Working Group description: Modules and plugins for working with Docker -license_file: COPYING +license: + - GPL-3.0-or-later + - Apache-2.0 +#license_file: COPYING tags: - docker repository: https://github.com/ansible-collections/community.docker diff --git a/meta/ee-bindep.txt b/meta/ee-bindep.txt index e69de29b..6ffd5ab0 100644 --- a/meta/ee-bindep.txt +++ b/meta/ee-bindep.txt @@ -0,0 +1,3 @@ +# 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 diff --git a/meta/ee-requirements.txt b/meta/ee-requirements.txt index a6506cd9..101b74b5 100644 --- a/meta/ee-requirements.txt +++ b/meta/ee-requirements.txt @@ -1,3 +1,7 @@ +# 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 + docker requests paramiko diff --git a/meta/execution-environment.yml b/meta/execution-environment.yml index 525b5ceb..9da98891 100644 --- a/meta/execution-environment.yml +++ b/meta/execution-environment.yml @@ -1,4 +1,8 @@ --- +# 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 + version: 1 dependencies: python: meta/ee-requirements.txt diff --git a/meta/runtime.yml b/meta/runtime.yml index 0880017b..4410e00c 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -1,4 +1,8 @@ --- +# 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 + requires_ansible: '>=2.11.0' action_groups: docker: diff --git a/plugins/connection/docker.py b/plugins/connection/docker.py index 6c8b84af..6e7d0790 100644 --- a/plugins/connection/docker.py +++ b/plugins/connection/docker.py @@ -4,7 +4,8 @@ # (c) 2015, Leendert Brouwer (https://github.com/objectified) # (c) 2015, Toshio Kuratomi # Copyright (c) 2017 Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/connection/docker_api.py b/plugins/connection/docker_api.py index ce7c47ad..888c62e4 100644 --- a/plugins/connection/docker_api.py +++ b/plugins/connection/docker_api.py @@ -1,5 +1,6 @@ # Copyright (c) 2019-2020, Felix Fontein -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/connection/nsenter.py b/plugins/connection/nsenter.py index 17bef1f9..dd437780 100644 --- a/plugins/connection/nsenter.py +++ b/plugins/connection/nsenter.py @@ -1,8 +1,9 @@ -# (c) 2021 Jeff Goldschrafe +# Copyright (c) 2021 Jeff Goldschrafe # Based on Ansible local connection plugin by: -# (c) 2012 Michael DeHaan -# (c) 2015, 2017 Toshio Kuratomi -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# Copyright (c) 2012 Michael DeHaan +# Copyright (c) 2015, 2017 Toshio Kuratomi +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/doc_fragments/docker.py b/plugins/doc_fragments/docker.py index 81a2163a..425bb38b 100644 --- a/plugins/doc_fragments/docker.py +++ b/plugins/doc_fragments/docker.py @@ -1,6 +1,8 @@ # -*- coding: utf-8 -*- -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/inventory/docker_containers.py b/plugins/inventory/docker_containers.py index af0a0fd0..c94b0e12 100644 --- a/plugins/inventory/docker_containers.py +++ b/plugins/inventory/docker_containers.py @@ -4,7 +4,8 @@ # Copyright (c) 2016, Paul Durivage # Copyright (c) 2016, Chris Houseknecht # Copyright (c) 2016, James Tanner -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) diff --git a/plugins/inventory/docker_machine.py b/plugins/inventory/docker_machine.py index 01a72b67..3bae4411 100644 --- a/plugins/inventory/docker_machine.py +++ b/plugins/inventory/docker_machine.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # Copyright (c) 2019, Ximon Eighteen -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/inventory/docker_swarm.py b/plugins/inventory/docker_swarm.py index a71b676d..b48a1b0c 100644 --- a/plugins/inventory/docker_swarm.py +++ b/plugins/inventory/docker_swarm.py @@ -1,7 +1,8 @@ # -*- coding: utf-8 -*- # Copyright (c) 2018, Stefan Heitmueller # Copyright (c) 2018 Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) diff --git a/plugins/module_utils/__init__.py b/plugins/module_utils/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/plugins/module_utils/_api/_import_helper.py b/plugins/module_utils/_api/_import_helper.py index b5b6d1f5..9ff1cad5 100644 --- a/plugins/module_utils/_api/_import_helper.py +++ b/plugins/module_utils/_api/_import_helper.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/api/client.py b/plugins/module_utils/_api/api/client.py index b930cb95..45ea7497 100644 --- a/plugins/module_utils/_api/api/client.py +++ b/plugins/module_utils/_api/api/client.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/api/daemon.py b/plugins/module_utils/_api/api/daemon.py index dc0bffbe..9e7adbf3 100644 --- a/plugins/module_utils/_api/api/daemon.py +++ b/plugins/module_utils/_api/api/daemon.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/auth.py b/plugins/module_utils/_api/auth.py index 633398d4..a172ced5 100644 --- a/plugins/module_utils/_api/auth.py +++ b/plugins/module_utils/_api/auth.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/constants.py b/plugins/module_utils/_api/constants.py index 24cb8985..23e10b13 100644 --- a/plugins/module_utils/_api/constants.py +++ b/plugins/module_utils/_api/constants.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/credentials/constants.py b/plugins/module_utils/_api/credentials/constants.py index 8312852c..c52bc564 100644 --- a/plugins/module_utils/_api/credentials/constants.py +++ b/plugins/module_utils/_api/credentials/constants.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/credentials/errors.py b/plugins/module_utils/_api/credentials/errors.py index 706dd7e8..0047e8e4 100644 --- a/plugins/module_utils/_api/credentials/errors.py +++ b/plugins/module_utils/_api/credentials/errors.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/credentials/store.py b/plugins/module_utils/_api/credentials/store.py index ba54ca10..e1bd28e3 100644 --- a/plugins/module_utils/_api/credentials/store.py +++ b/plugins/module_utils/_api/credentials/store.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/credentials/utils.py b/plugins/module_utils/_api/credentials/utils.py index 76503ad9..08699efb 100644 --- a/plugins/module_utils/_api/credentials/utils.py +++ b/plugins/module_utils/_api/credentials/utils.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/errors.py b/plugins/module_utils/_api/errors.py index d96fb6ac..03948736 100644 --- a/plugins/module_utils/_api/errors.py +++ b/plugins/module_utils/_api/errors.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/tls.py b/plugins/module_utils/_api/tls.py index f8fa69d0..33406b85 100644 --- a/plugins/module_utils/_api/tls.py +++ b/plugins/module_utils/_api/tls.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/transport/basehttpadapter.py b/plugins/module_utils/_api/transport/basehttpadapter.py index 8d7574c3..2afa60ae 100644 --- a/plugins/module_utils/_api/transport/basehttpadapter.py +++ b/plugins/module_utils/_api/transport/basehttpadapter.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/transport/npipeconn.py b/plugins/module_utils/_api/transport/npipeconn.py index eca977a4..72a5c589 100644 --- a/plugins/module_utils/_api/transport/npipeconn.py +++ b/plugins/module_utils/_api/transport/npipeconn.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/transport/npipesocket.py b/plugins/module_utils/_api/transport/npipesocket.py index d2e1826a..f9d3ed66 100644 --- a/plugins/module_utils/_api/transport/npipesocket.py +++ b/plugins/module_utils/_api/transport/npipesocket.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/transport/sshconn.py b/plugins/module_utils/_api/transport/sshconn.py index 1687b1ef..47dc35db 100644 --- a/plugins/module_utils/_api/transport/sshconn.py +++ b/plugins/module_utils/_api/transport/sshconn.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/transport/ssladapter.py b/plugins/module_utils/_api/transport/ssladapter.py index 0b3e6028..a3182bcd 100644 --- a/plugins/module_utils/_api/transport/ssladapter.py +++ b/plugins/module_utils/_api/transport/ssladapter.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/transport/unixconn.py b/plugins/module_utils/_api/transport/unixconn.py index ca82dce4..f46372f9 100644 --- a/plugins/module_utils/_api/transport/unixconn.py +++ b/plugins/module_utils/_api/transport/unixconn.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/types/daemon.py b/plugins/module_utils/_api/types/daemon.py index 0fc5ae93..61964428 100644 --- a/plugins/module_utils/_api/types/daemon.py +++ b/plugins/module_utils/_api/types/daemon.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/utils/build.py b/plugins/module_utils/_api/utils/build.py index 3cb4263c..9b5d1874 100644 --- a/plugins/module_utils/_api/utils/build.py +++ b/plugins/module_utils/_api/utils/build.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/utils/config.py b/plugins/module_utils/_api/utils/config.py index 432d0406..eed538b4 100644 --- a/plugins/module_utils/_api/utils/config.py +++ b/plugins/module_utils/_api/utils/config.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/utils/decorators.py b/plugins/module_utils/_api/utils/decorators.py index 13ba1c0e..ec2d258a 100644 --- a/plugins/module_utils/_api/utils/decorators.py +++ b/plugins/module_utils/_api/utils/decorators.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/utils/fnmatch.py b/plugins/module_utils/_api/utils/fnmatch.py index 702c98f1..f6e77a5f 100644 --- a/plugins/module_utils/_api/utils/fnmatch.py +++ b/plugins/module_utils/_api/utils/fnmatch.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/utils/json_stream.py b/plugins/module_utils/_api/utils/json_stream.py index c3fab726..f3a74bac 100644 --- a/plugins/module_utils/_api/utils/json_stream.py +++ b/plugins/module_utils/_api/utils/json_stream.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/utils/ports.py b/plugins/module_utils/_api/utils/ports.py index bebef7fa..194aaa7a 100644 --- a/plugins/module_utils/_api/utils/ports.py +++ b/plugins/module_utils/_api/utils/ports.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/utils/proxy.py b/plugins/module_utils/_api/utils/proxy.py index ed9345a8..ed20ff53 100644 --- a/plugins/module_utils/_api/utils/proxy.py +++ b/plugins/module_utils/_api/utils/proxy.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/utils/socket.py b/plugins/module_utils/_api/utils/socket.py index 9fc95cd6..b4721022 100644 --- a/plugins/module_utils/_api/utils/socket.py +++ b/plugins/module_utils/_api/utils/socket.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/_api/utils/utils.py b/plugins/module_utils/_api/utils/utils.py index 27167373..6401fbab 100644 --- a/plugins/module_utils/_api/utils/utils.py +++ b/plugins/module_utils/_api/utils/utils.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/common.py b/plugins/module_utils/common.py index e889baee..a8ce7b61 100644 --- a/plugins/module_utils/common.py +++ b/plugins/module_utils/common.py @@ -1,5 +1,6 @@ # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/common_api.py b/plugins/module_utils/common_api.py index 0ab2111f..1ab89836 100644 --- a/plugins/module_utils/common_api.py +++ b/plugins/module_utils/common_api.py @@ -1,6 +1,7 @@ # Copyright 2016 Red Hat | Ansible # Copyright (c) 2022 Felix Fontein -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/module_container/base.py b/plugins/module_utils/module_container/base.py index 70f0afe0..f9f95e4e 100644 --- a/plugins/module_utils/module_container/base.py +++ b/plugins/module_utils/module_container/base.py @@ -1,6 +1,7 @@ # Copyright (c) 2022 Felix Fontein # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/module_container/docker_api.py b/plugins/module_utils/module_container/docker_api.py index fe20dbc1..31fde528 100644 --- a/plugins/module_utils/module_container/docker_api.py +++ b/plugins/module_utils/module_container/docker_api.py @@ -1,6 +1,7 @@ # Copyright (c) 2022 Felix Fontein # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/module_container/module.py b/plugins/module_utils/module_container/module.py index e354347a..4656a112 100644 --- a/plugins/module_utils/module_container/module.py +++ b/plugins/module_utils/module_container/module.py @@ -1,6 +1,7 @@ # Copyright (c) 2022 Felix Fontein # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/module_utils/socket_handler.py b/plugins/module_utils/socket_handler.py index 8a180111..c582d6d8 100644 --- a/plugins/module_utils/socket_handler.py +++ b/plugins/module_utils/socket_handler.py @@ -1,5 +1,6 @@ # Copyright (c) 2019-2021, Felix Fontein -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/socket_helper.py b/plugins/module_utils/socket_helper.py index ace098e0..a0885f72 100644 --- a/plugins/module_utils/socket_helper.py +++ b/plugins/module_utils/socket_helper.py @@ -1,5 +1,6 @@ # Copyright (c) 2019-2021, Felix Fontein -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/swarm.py b/plugins/module_utils/swarm.py index 160ae020..0dbc1e72 100644 --- a/plugins/module_utils/swarm.py +++ b/plugins/module_utils/swarm.py @@ -1,6 +1,7 @@ -# (c) 2019 Piotr Wojciechowski (@wojciechowskipiotr) -# (c) Thierry Bouvet (@tbouvet) -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# Copyright (c) 2019 Piotr Wojciechowski (@wojciechowskipiotr) +# Copyright (c) Thierry Bouvet (@tbouvet) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/util.py b/plugins/module_utils/util.py index 6d1a14bd..37917133 100644 --- a/plugins/module_utils/util.py +++ b/plugins/module_utils/util.py @@ -1,5 +1,6 @@ # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/version.py b/plugins/module_utils/version.py index bf594895..746e6ba8 100644 --- a/plugins/module_utils/version.py +++ b/plugins/module_utils/version.py @@ -1,7 +1,8 @@ # -*- coding: utf-8 -*- -# Copyright: (c) 2021, Felix Fontein -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# Copyright (c) 2021, Felix Fontein +# 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 """Provide version object to compare version numbers.""" diff --git a/plugins/modules/current_container_facts.py b/plugins/modules/current_container_facts.py index fd9cf754..d91d9c5e 100644 --- a/plugins/modules/current_container_facts.py +++ b/plugins/modules/current_container_facts.py @@ -1,8 +1,9 @@ #!/usr/bin/python # -# (c) 2020 Matt Clay -# (c) 2020 Felix Fontein -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# Copyright (c) 2020 Matt Clay +# Copyright (c) 2020 Felix Fontein +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_compose.py b/plugins/modules/docker_compose.py index 93ebb09e..f5b8c767 100644 --- a/plugins/modules/docker_compose.py +++ b/plugins/modules/docker_compose.py @@ -1,7 +1,8 @@ #!/usr/bin/python # # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_config.py b/plugins/modules/docker_config.py index 4d3ecad1..c5ffbe9f 100644 --- a/plugins/modules/docker_config.py +++ b/plugins/modules/docker_config.py @@ -1,7 +1,8 @@ #!/usr/bin/python # # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_container.py b/plugins/modules/docker_container.py index 4946c3cd..491b5c50 100644 --- a/plugins/modules/docker_container.py +++ b/plugins/modules/docker_container.py @@ -1,7 +1,8 @@ #!/usr/bin/python # # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_container_exec.py b/plugins/modules/docker_container_exec.py index aa267949..76409963 100644 --- a/plugins/modules/docker_container_exec.py +++ b/plugins/modules/docker_container_exec.py @@ -1,7 +1,8 @@ #!/usr/bin/python # # Copyright (c) 2021, Felix Fontein -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_container_info.py b/plugins/modules/docker_container_info.py index ad226877..21686a3d 100644 --- a/plugins/modules/docker_container_info.py +++ b/plugins/modules/docker_container_info.py @@ -1,7 +1,8 @@ #!/usr/bin/python # # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_host_info.py b/plugins/modules/docker_host_info.py index 22e3cd50..f9f94542 100644 --- a/plugins/modules/docker_host_info.py +++ b/plugins/modules/docker_host_info.py @@ -1,7 +1,8 @@ #!/usr/bin/python # -# (c) 2019 Piotr Wojciechowski -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# Copyright (c) 2019 Piotr Wojciechowski +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_image.py b/plugins/modules/docker_image.py index 71ad43a8..5eca0d7b 100644 --- a/plugins/modules/docker_image.py +++ b/plugins/modules/docker_image.py @@ -1,7 +1,8 @@ #!/usr/bin/python # # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_image_info.py b/plugins/modules/docker_image_info.py index d7282dc4..1b3aafbf 100644 --- a/plugins/modules/docker_image_info.py +++ b/plugins/modules/docker_image_info.py @@ -1,7 +1,8 @@ #!/usr/bin/python # # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_image_load.py b/plugins/modules/docker_image_load.py index 119b1559..2988c1ca 100644 --- a/plugins/modules/docker_image_load.py +++ b/plugins/modules/docker_image_load.py @@ -2,7 +2,8 @@ # -*- coding: utf-8 -*- # # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_login.py b/plugins/modules/docker_login.py index 8c5f9c55..51114774 100644 --- a/plugins/modules/docker_login.py +++ b/plugins/modules/docker_login.py @@ -1,10 +1,11 @@ #!/usr/bin/python # -# (c) 2016 Olaf Kilian -# Chris Houseknecht, -# James Tanner, +# Copyright (c) 2016 Olaf Kilian +# Chris Houseknecht, +# James Tanner, # -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_network.py b/plugins/modules/docker_network.py index ba49b6bf..4228eb83 100644 --- a/plugins/modules/docker_network.py +++ b/plugins/modules/docker_network.py @@ -1,7 +1,8 @@ #!/usr/bin/python # # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_network_info.py b/plugins/modules/docker_network_info.py index 18a65924..7375cba4 100644 --- a/plugins/modules/docker_network_info.py +++ b/plugins/modules/docker_network_info.py @@ -1,7 +1,8 @@ #!/usr/bin/python # # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_node.py b/plugins/modules/docker_node.py index 6aac6e93..c96e6b1a 100644 --- a/plugins/modules/docker_node.py +++ b/plugins/modules/docker_node.py @@ -1,7 +1,8 @@ #!/usr/bin/python # -# (c) 2019 Piotr Wojciechowski -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# Copyright (c) 2019 Piotr Wojciechowski +# 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 from __future__ import absolute_import, division, print_function diff --git a/plugins/modules/docker_node_info.py b/plugins/modules/docker_node_info.py index 5fa7a3f9..999c100d 100644 --- a/plugins/modules/docker_node_info.py +++ b/plugins/modules/docker_node_info.py @@ -1,7 +1,8 @@ #!/usr/bin/python # -# (c) 2019 Piotr Wojciechowski -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# Copyright (c) 2019 Piotr Wojciechowski +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_plugin.py b/plugins/modules/docker_plugin.py index d4011df8..b84815aa 100644 --- a/plugins/modules/docker_plugin.py +++ b/plugins/modules/docker_plugin.py @@ -1,9 +1,10 @@ #!/usr/bin/python # coding: utf-8 # -# Copyright: (c) 2021 Red Hat | Ansible Sakar Mehra<@sakarmehra100@gmail.com | @sakar97> -# Copyright: (c) 2019, Vladimir Porshkevich (@porshkevich) -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# Copyright (c) 2021 Red Hat | Ansible Sakar Mehra<@sakarmehra100@gmail.com | @sakar97> +# Copyright (c) 2019, Vladimir Porshkevich (@porshkevich) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_prune.py b/plugins/modules/docker_prune.py index 21e7ffa1..798fe443 100644 --- a/plugins/modules/docker_prune.py +++ b/plugins/modules/docker_prune.py @@ -1,7 +1,8 @@ #!/usr/bin/python # # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_secret.py b/plugins/modules/docker_secret.py index 80a6d117..3dd32648 100644 --- a/plugins/modules/docker_secret.py +++ b/plugins/modules/docker_secret.py @@ -1,7 +1,8 @@ #!/usr/bin/python # # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_stack.py b/plugins/modules/docker_stack.py index e020a33c..031afe2e 100644 --- a/plugins/modules/docker_stack.py +++ b/plugins/modules/docker_stack.py @@ -2,7 +2,8 @@ # -*- coding: utf-8 -*- # Copyright (c) 2018 Dario Zanzico (git@dariozanzico.com) -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/modules/docker_stack_info.py b/plugins/modules/docker_stack_info.py index ef588c53..1cafcdc2 100644 --- a/plugins/modules/docker_stack_info.py +++ b/plugins/modules/docker_stack_info.py @@ -2,7 +2,8 @@ # -*- coding: utf-8 -*- # Copyright (c) 2020 Jose Angel Munoz (@imjoseangel) -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) diff --git a/plugins/modules/docker_stack_task_info.py b/plugins/modules/docker_stack_task_info.py index 19073c18..b09a738e 100644 --- a/plugins/modules/docker_stack_task_info.py +++ b/plugins/modules/docker_stack_task_info.py @@ -2,7 +2,8 @@ # -*- coding: utf-8 -*- # Copyright (c) 2020 Jose Angel Munoz (@imjoseangel) -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) diff --git a/plugins/modules/docker_swarm.py b/plugins/modules/docker_swarm.py index bffe56ae..a20807d8 100644 --- a/plugins/modules/docker_swarm.py +++ b/plugins/modules/docker_swarm.py @@ -1,7 +1,8 @@ #!/usr/bin/python # Copyright 2016 Red Hat | Ansible -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_swarm_info.py b/plugins/modules/docker_swarm_info.py index ccb65e11..ff59bab2 100644 --- a/plugins/modules/docker_swarm_info.py +++ b/plugins/modules/docker_swarm_info.py @@ -1,7 +1,8 @@ #!/usr/bin/python # -# (c) 2019 Piotr Wojciechowski -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# Copyright (c) 2019 Piotr Wojciechowski +# 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 from __future__ import absolute_import, division, print_function diff --git a/plugins/modules/docker_swarm_service.py b/plugins/modules/docker_swarm_service.py index d68e5fce..29ffbb35 100644 --- a/plugins/modules/docker_swarm_service.py +++ b/plugins/modules/docker_swarm_service.py @@ -1,7 +1,8 @@ #!/usr/bin/python # -# (c) 2017, Dario Zanzico (git@dariozanzico.com) -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# Copyright (c) 2017, Dario Zanzico (git@dariozanzico.com) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_swarm_service_info.py b/plugins/modules/docker_swarm_service_info.py index e4b4c1d5..e242624a 100644 --- a/plugins/modules/docker_swarm_service_info.py +++ b/plugins/modules/docker_swarm_service_info.py @@ -1,7 +1,8 @@ #!/usr/bin/python # -# (c) 2019 Hannes Ljungberg -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# Copyright (c) 2019 Hannes Ljungberg +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_volume.py b/plugins/modules/docker_volume.py index fd5e775f..6fe37eb4 100644 --- a/plugins/modules/docker_volume.py +++ b/plugins/modules/docker_volume.py @@ -2,7 +2,8 @@ # coding: utf-8 # # Copyright 2017 Red Hat | Ansible, Alex Grönholm -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/modules/docker_volume_info.py b/plugins/modules/docker_volume_info.py index c60808e1..51372b96 100644 --- a/plugins/modules/docker_volume_info.py +++ b/plugins/modules/docker_volume_info.py @@ -2,7 +2,8 @@ # coding: utf-8 # # Copyright 2017 Red Hat | Ansible, Alex Grönholm -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/plugins/plugin_utils/common.py b/plugins/plugin_utils/common.py index 2f48543a..f3c7c05c 100644 --- a/plugins/plugin_utils/common.py +++ b/plugins/plugin_utils/common.py @@ -1,5 +1,6 @@ # Copyright (c) 2019-2020, Felix Fontein -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/plugin_utils/common_api.py b/plugins/plugin_utils/common_api.py index b96cb1be..eda28d48 100644 --- a/plugins/plugin_utils/common_api.py +++ b/plugins/plugin_utils/common_api.py @@ -1,5 +1,6 @@ # Copyright (c) 2019-2020, Felix Fontein -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/plugin_utils/socket_handler.py b/plugins/plugin_utils/socket_handler.py index 4bc667be..204996f2 100644 --- a/plugins/plugin_utils/socket_handler.py +++ b/plugins/plugin_utils/socket_handler.py @@ -1,5 +1,6 @@ # Copyright (c) 2019-2020, Felix Fontein -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/config.yml b/tests/config.yml index 1bc926e7..5444c9e1 100644 --- a/tests/config.yml +++ b/tests/config.yml @@ -1,4 +1,8 @@ --- +# 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 + # See template for more information: # https://github.com/ansible/ansible/blob/devel/test/lib/ansible_test/config/config.yml modules: diff --git a/tests/ee/all.yml b/tests/ee/all.yml index bf0659e5..907866f9 100644 --- a/tests/ee/all.yml +++ b/tests/ee/all.yml @@ -1,3 +1,8 @@ +--- +# 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 + - hosts: localhost vars: docker_test_image_alpine: quay.io/ansible/docker-test-containers:alpine3.8 diff --git a/tests/ee/roles/current_container_facts/tasks/main.yml b/tests/ee/roles/current_container_facts/tasks/main.yml index 30158497..d5096cdd 100644 --- a/tests/ee/roles/current_container_facts/tasks/main.yml +++ b/tests/ee/roles/current_container_facts/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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: Retrieve information on current container community.docker.current_container_facts: register: result diff --git a/tests/ee/roles/docker_plain/tasks/main.yml b/tests/ee/roles/docker_plain/tasks/main.yml index 25c1a02b..a8669435 100644 --- a/tests/ee/roles/docker_plain/tasks/main.yml +++ b/tests/ee/roles/docker_plain/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + # Create random name prefix (for containers, networks, ...) - name: Create random container name prefix set_fact: diff --git a/tests/ee/roles/docker_stack/tasks/main.yml b/tests/ee/roles/docker_stack/tasks/main.yml index 44b6295c..5d4d5698 100644 --- a/tests/ee/roles/docker_stack/tasks/main.yml +++ b/tests/ee/roles/docker_stack/tasks/main.yml @@ -1,2 +1,6 @@ --- +# 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 + # Currently the docker_stack* modules are not supported in the EE since we'd need to install the Docker CLI client diff --git a/tests/integration/targets/connection/aliases b/tests/integration/targets/connection/aliases index 136c05e0..a02a2d61 100644 --- a/tests/integration/targets/connection/aliases +++ b/tests/integration/targets/connection/aliases @@ -1 +1,5 @@ +# 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 + hidden diff --git a/tests/integration/targets/connection/test.sh b/tests/integration/targets/connection/test.sh index 334a1636..793a85dd 100755 --- a/tests/integration/targets/connection/test.sh +++ b/tests/integration/targets/connection/test.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# 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 set -eux diff --git a/tests/integration/targets/connection/test_connection.yml b/tests/integration/targets/connection/test_connection.yml index a662e576..157a7821 100644 --- a/tests/integration/targets/connection/test_connection.yml +++ b/tests/integration/targets/connection/test_connection.yml @@ -1,3 +1,8 @@ +--- +# 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 + - hosts: "{{ target_hosts }}" gather_facts: no serial: 1 diff --git a/tests/integration/targets/connection_docker/aliases b/tests/integration/targets/connection_docker/aliases index 8beddaed..648248af 100644 --- a/tests/integration/targets/connection_docker/aliases +++ b/tests/integration/targets/connection_docker/aliases @@ -1,3 +1,7 @@ +# 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 + shippable/posix/group4 skip/docker # coverage does not work if we're inside a docker container, since we cannot access this container's /tmp dir from the new container destructive diff --git a/tests/integration/targets/connection_docker/meta/main.yml b/tests/integration/targets/connection_docker/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/connection_docker/meta/main.yml +++ b/tests/integration/targets/connection_docker/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/connection_docker/runme.sh b/tests/integration/targets/connection_docker/runme.sh index de9233af..0965c5d7 100755 --- a/tests/integration/targets/connection_docker/runme.sh +++ b/tests/integration/targets/connection_docker/runme.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# 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 # If you use another image, you possibly also need to adjust # ansible_python_interpreter in test_connection.inventory. diff --git a/tests/integration/targets/connection_docker/setup.yml b/tests/integration/targets/connection_docker/setup.yml index a709d2c7..3a6bba8a 100644 --- a/tests/integration/targets/connection_docker/setup.yml +++ b/tests/integration/targets/connection_docker/setup.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: localhost connection: local vars: diff --git a/tests/integration/targets/connection_docker/shutdown.yml b/tests/integration/targets/connection_docker/shutdown.yml index e01d1210..a28509ef 100644 --- a/tests/integration/targets/connection_docker/shutdown.yml +++ b/tests/integration/targets/connection_docker/shutdown.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: localhost connection: local vars: diff --git a/tests/integration/targets/connection_docker_api/aliases b/tests/integration/targets/connection_docker_api/aliases index 8beddaed..648248af 100644 --- a/tests/integration/targets/connection_docker_api/aliases +++ b/tests/integration/targets/connection_docker_api/aliases @@ -1,3 +1,7 @@ +# 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 + shippable/posix/group4 skip/docker # coverage does not work if we're inside a docker container, since we cannot access this container's /tmp dir from the new container destructive diff --git a/tests/integration/targets/connection_docker_api/meta/main.yml b/tests/integration/targets/connection_docker_api/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/connection_docker_api/meta/main.yml +++ b/tests/integration/targets/connection_docker_api/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/connection_docker_api/runme.sh b/tests/integration/targets/connection_docker_api/runme.sh index a21bcc09..893b019a 100755 --- a/tests/integration/targets/connection_docker_api/runme.sh +++ b/tests/integration/targets/connection_docker_api/runme.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# 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 # If you use another image, you possibly also need to adjust # ansible_python_interpreter in test_connection.inventory. diff --git a/tests/integration/targets/connection_docker_api/setup.yml b/tests/integration/targets/connection_docker_api/setup.yml index a709d2c7..3a6bba8a 100644 --- a/tests/integration/targets/connection_docker_api/setup.yml +++ b/tests/integration/targets/connection_docker_api/setup.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: localhost connection: local vars: diff --git a/tests/integration/targets/connection_docker_api/shutdown.yml b/tests/integration/targets/connection_docker_api/shutdown.yml index e01d1210..a28509ef 100644 --- a/tests/integration/targets/connection_docker_api/shutdown.yml +++ b/tests/integration/targets/connection_docker_api/shutdown.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: localhost connection: local vars: diff --git a/tests/integration/targets/connection_nsenter/aliases b/tests/integration/targets/connection_nsenter/aliases index 60b42aae..66434a70 100644 --- a/tests/integration/targets/connection_nsenter/aliases +++ b/tests/integration/targets/connection_nsenter/aliases @@ -1,3 +1,7 @@ +# 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 + shippable/posix/group5 skip/docker # this requires unfettered access to the container host skip/rhel7.9 # nsenter does not work out of the box diff --git a/tests/integration/targets/connection_nsenter/meta/main.yml b/tests/integration/targets/connection_nsenter/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/connection_nsenter/meta/main.yml +++ b/tests/integration/targets/connection_nsenter/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/connection_nsenter/runme.sh b/tests/integration/targets/connection_nsenter/runme.sh index 6f8ec2d3..eebbb6a3 100755 --- a/tests/integration/targets/connection_nsenter/runme.sh +++ b/tests/integration/targets/connection_nsenter/runme.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# 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 set -euo pipefail diff --git a/tests/integration/targets/connection_nsenter/setup.yml b/tests/integration/targets/connection_nsenter/setup.yml index a709d2c7..3a6bba8a 100644 --- a/tests/integration/targets/connection_nsenter/setup.yml +++ b/tests/integration/targets/connection_nsenter/setup.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: localhost connection: local vars: diff --git a/tests/integration/targets/connection_nsenter/shutdown.yml b/tests/integration/targets/connection_nsenter/shutdown.yml index e01d1210..a28509ef 100644 --- a/tests/integration/targets/connection_nsenter/shutdown.yml +++ b/tests/integration/targets/connection_nsenter/shutdown.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: localhost connection: local vars: diff --git a/tests/integration/targets/connection_posix/aliases b/tests/integration/targets/connection_posix/aliases index f5e09799..44561e2f 100644 --- a/tests/integration/targets/connection_posix/aliases +++ b/tests/integration/targets/connection_posix/aliases @@ -1,2 +1,6 @@ +# 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 + needs/target/connection hidden diff --git a/tests/integration/targets/connection_posix/test.sh b/tests/integration/targets/connection_posix/test.sh index 96eaa85f..f374af7f 100755 --- a/tests/integration/targets/connection_posix/test.sh +++ b/tests/integration/targets/connection_posix/test.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# 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 set -eux diff --git a/tests/integration/targets/docker_compose/aliases b/tests/integration/targets/docker_compose/aliases index 02b78723..9683a6a5 100644 --- a/tests/integration/targets/docker_compose/aliases +++ b/tests/integration/targets/docker_compose/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group4 destructive diff --git a/tests/integration/targets/docker_compose/meta/main.yml b/tests/integration/targets/docker_compose/meta/main.yml index a033c656..7f44c871 100644 --- a/tests/integration/targets/docker_compose/meta/main.yml +++ b/tests/integration/targets/docker_compose/meta/main.yml @@ -1,4 +1,8 @@ --- +# 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 + dependencies: - setup_docker_compose - setup_remote_tmp_dir diff --git a/tests/integration/targets/docker_compose/tasks/main.yml b/tests/integration/targets/docker_compose/tasks/main.yml index 448616ec..41edc1e9 100644 --- a/tests/integration/targets/docker_compose/tasks/main.yml +++ b/tests/integration/targets/docker_compose/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_compose/tasks/run-test.yml b/tests/integration/targets/docker_compose/tasks/run-test.yml index a2999370..65853ddd 100644 --- a/tests/integration/targets/docker_compose/tasks/run-test.yml +++ b/tests/integration/targets/docker_compose/tasks/run-test.yml @@ -1,3 +1,7 @@ --- +# 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: "Loading tasks from {{ item }}" include_tasks: "{{ item }}" diff --git a/tests/integration/targets/docker_compose/tasks/tests/options.yml b/tests/integration/targets/docker_compose/tasks/tests/options.yml index a1b00ee5..f2440317 100644 --- a/tests/integration/targets/docker_compose/tasks/tests/options.yml +++ b/tests/integration/targets/docker_compose/tasks/tests/options.yml @@ -1,4 +1,8 @@ --- +# 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 name set_fact: pname: "{{ cname_prefix }}" diff --git a/tests/integration/targets/docker_compose/tasks/tests/start-stop.yml b/tests/integration/targets/docker_compose/tasks/tests/start-stop.yml index 46103f2e..93aff8b0 100644 --- a/tests/integration/targets/docker_compose/tasks/tests/start-stop.yml +++ b/tests/integration/targets/docker_compose/tasks/tests/start-stop.yml @@ -1,4 +1,8 @@ --- +# 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 name set_fact: pname: "{{ cname_prefix }}" diff --git a/tests/integration/targets/docker_config/aliases b/tests/integration/targets/docker_config/aliases index cdf1b9b1..b84dff7e 100644 --- a/tests/integration/targets/docker_config/aliases +++ b/tests/integration/targets/docker_config/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group3 destructive diff --git a/tests/integration/targets/docker_config/meta/main.yml b/tests/integration/targets/docker_config/meta/main.yml index a2419b9a..2650229d 100644 --- a/tests/integration/targets/docker_config/meta/main.yml +++ b/tests/integration/targets/docker_config/meta/main.yml @@ -1,4 +1,8 @@ --- +# 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 + dependencies: - setup_docker - setup_remote_tmp_dir diff --git a/tests/integration/targets/docker_config/tasks/main.yml b/tests/integration/targets/docker_config/tasks/main.yml index ea3fbde5..1a713e79 100644 --- a/tests/integration/targets/docker_config/tasks/main.yml +++ b/tests/integration/targets/docker_config/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_config/tasks/test_docker_config.yml b/tests/integration/targets/docker_config/tasks/test_docker_config.yml index 4b77b538..f31a2903 100644 --- a/tests/integration/targets/docker_config/tasks/test_docker_config.yml +++ b/tests/integration/targets/docker_config/tasks/test_docker_config.yml @@ -1,4 +1,8 @@ --- +# 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 + - block: - shell: "docker info --format '{% raw %}{{json .}}{% endraw %}' | python -m json.tool" diff --git a/tests/integration/targets/docker_container/aliases b/tests/integration/targets/docker_container/aliases index 6e8edef7..e7bdbdc2 100644 --- a/tests/integration/targets/docker_container/aliases +++ b/tests/integration/targets/docker_container/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group5 destructive diff --git a/tests/integration/targets/docker_container/files/env-file b/tests/integration/targets/docker_container/files/env-file index b15f1b64..87bc9dec 100644 --- a/tests/integration/targets/docker_container/files/env-file +++ b/tests/integration/targets/docker_container/files/env-file @@ -1,2 +1,6 @@ +# 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 + TEST3=val3 TEST4=val4 diff --git a/tests/integration/targets/docker_container/filter_plugins/ipaddr_tools.py b/tests/integration/targets/docker_container/filter_plugins/ipaddr_tools.py index 29f6552e..f6840a3a 100644 --- a/tests/integration/targets/docker_container/filter_plugins/ipaddr_tools.py +++ b/tests/integration/targets/docker_container/filter_plugins/ipaddr_tools.py @@ -1,19 +1,6 @@ -# (c) 2020, Felix Fontein -# -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# Copyright (c) 2020, Felix Fontein +# 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 from __future__ import absolute_import, division, print_function __metaclass__ = type diff --git a/tests/integration/targets/docker_container/meta/main.yml b/tests/integration/targets/docker_container/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_container/meta/main.yml +++ b/tests/integration/targets/docker_container/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_container/tasks/main.yml b/tests/integration/targets/docker_container/tasks/main.yml index 4a1204f3..f9c1f663 100644 --- a/tests/integration/targets/docker_container/tasks/main.yml +++ b/tests/integration/targets/docker_container/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_container/tasks/run-test.yml b/tests/integration/targets/docker_container/tasks/run-test.yml index a2999370..65853ddd 100644 --- a/tests/integration/targets/docker_container/tasks/run-test.yml +++ b/tests/integration/targets/docker_container/tasks/run-test.yml @@ -1,3 +1,7 @@ --- +# 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: "Loading tasks from {{ item }}" include_tasks: "{{ item }}" diff --git a/tests/integration/targets/docker_container/tasks/tests/comparisons.yml b/tests/integration/targets/docker_container/tasks/tests/comparisons.yml index fadf4dc3..65c25c38 100644 --- a/tests/integration/targets/docker_container/tasks/tests/comparisons.yml +++ b/tests/integration/targets/docker_container/tasks/tests/comparisons.yml @@ -1,4 +1,8 @@ --- +# 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 name set_fact: cname: "{{ cname_prefix ~ '-comparisons' }}" diff --git a/tests/integration/targets/docker_container/tasks/tests/compatibility.yml b/tests/integration/targets/docker_container/tasks/tests/compatibility.yml index de8758aa..2ec90965 100644 --- a/tests/integration/targets/docker_container/tasks/tests/compatibility.yml +++ b/tests/integration/targets/docker_container/tasks/tests/compatibility.yml @@ -1,4 +1,8 @@ --- +# 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 name set_fact: cname: "{{ cname_prefix ~ '-hi' }}" diff --git a/tests/integration/targets/docker_container/tasks/tests/image-ids.yml b/tests/integration/targets/docker_container/tasks/tests/image-ids.yml index 3ec56d0b..d355c6a5 100644 --- a/tests/integration/targets/docker_container/tasks/tests/image-ids.yml +++ b/tests/integration/targets/docker_container/tasks/tests/image-ids.yml @@ -1,4 +1,8 @@ --- +# 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 name set_fact: cname: "{{ cname_prefix ~ '-iid' }}" diff --git a/tests/integration/targets/docker_container/tasks/tests/mounts-volumes.yml b/tests/integration/targets/docker_container/tasks/tests/mounts-volumes.yml index 8cb08e3c..cdfbf2ec 100644 --- a/tests/integration/targets/docker_container/tasks/tests/mounts-volumes.yml +++ b/tests/integration/targets/docker_container/tasks/tests/mounts-volumes.yml @@ -1,4 +1,8 @@ --- +# 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 name set_fact: cname: "{{ cname_prefix ~ '-mounts' }}" diff --git a/tests/integration/targets/docker_container/tasks/tests/network.yml b/tests/integration/targets/docker_container/tasks/tests/network.yml index 55555ad6..bad742e3 100644 --- a/tests/integration/targets/docker_container/tasks/tests/network.yml +++ b/tests/integration/targets/docker_container/tasks/tests/network.yml @@ -1,4 +1,8 @@ --- +# 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 name set_fact: cname: "{{ cname_prefix ~ '-network' }}" diff --git a/tests/integration/targets/docker_container/tasks/tests/options.yml b/tests/integration/targets/docker_container/tasks/tests/options.yml index 57056b8f..2cc44d13 100644 --- a/tests/integration/targets/docker_container/tasks/tests/options.yml +++ b/tests/integration/targets/docker_container/tasks/tests/options.yml @@ -1,4 +1,8 @@ --- +# 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 name set_fact: cname: "{{ cname_prefix ~ '-options' }}" diff --git a/tests/integration/targets/docker_container/tasks/tests/ports.yml b/tests/integration/targets/docker_container/tasks/tests/ports.yml index 3488a2e6..3db6fbb0 100644 --- a/tests/integration/targets/docker_container/tasks/tests/ports.yml +++ b/tests/integration/targets/docker_container/tasks/tests/ports.yml @@ -1,4 +1,8 @@ --- +# 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 name set_fact: cname: "{{ cname_prefix ~ '-options' }}" diff --git a/tests/integration/targets/docker_container/tasks/tests/regression-45700-dont-parse-on-absent.yml b/tests/integration/targets/docker_container/tasks/tests/regression-45700-dont-parse-on-absent.yml index d5150153..b57677dd 100644 --- a/tests/integration/targets/docker_container/tasks/tests/regression-45700-dont-parse-on-absent.yml +++ b/tests/integration/targets/docker_container/tasks/tests/regression-45700-dont-parse-on-absent.yml @@ -1,4 +1,8 @@ --- +# 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: diff --git a/tests/integration/targets/docker_container/tasks/tests/start-stop.yml b/tests/integration/targets/docker_container/tasks/tests/start-stop.yml index ec9de7c5..d7423261 100644 --- a/tests/integration/targets/docker_container/tasks/tests/start-stop.yml +++ b/tests/integration/targets/docker_container/tasks/tests/start-stop.yml @@ -1,4 +1,8 @@ --- +# 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 name set_fact: cname: "{{ cname_prefix ~ '-hi' }}" diff --git a/tests/integration/targets/docker_container/tasks/tests/update.yml b/tests/integration/targets/docker_container/tasks/tests/update.yml index bfff1070..54e4193d 100644 --- a/tests/integration/targets/docker_container/tasks/tests/update.yml +++ b/tests/integration/targets/docker_container/tasks/tests/update.yml @@ -1,4 +1,8 @@ --- +# 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 name set_fact: cname: "{{ cname_prefix ~ '-update' }}" diff --git a/tests/integration/targets/docker_container_exec/aliases b/tests/integration/targets/docker_container_exec/aliases index 02b78723..9683a6a5 100644 --- a/tests/integration/targets/docker_container_exec/aliases +++ b/tests/integration/targets/docker_container_exec/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group4 destructive diff --git a/tests/integration/targets/docker_container_exec/meta/main.yml b/tests/integration/targets/docker_container_exec/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_container_exec/meta/main.yml +++ b/tests/integration/targets/docker_container_exec/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_container_exec/tasks/main.yml b/tests/integration/targets/docker_container_exec/tasks/main.yml index b3d57745..2cf0e5a1 100644 --- a/tests/integration/targets/docker_container_exec/tasks/main.yml +++ b/tests/integration/targets/docker_container_exec/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_container_info/aliases b/tests/integration/targets/docker_container_info/aliases index 6e8edef7..e7bdbdc2 100644 --- a/tests/integration/targets/docker_container_info/aliases +++ b/tests/integration/targets/docker_container_info/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group5 destructive diff --git a/tests/integration/targets/docker_container_info/meta/main.yml b/tests/integration/targets/docker_container_info/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_container_info/meta/main.yml +++ b/tests/integration/targets/docker_container_info/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_container_info/tasks/main.yml b/tests/integration/targets/docker_container_info/tasks/main.yml index 0923717a..80f03b85 100644 --- a/tests/integration/targets/docker_container_info/tasks/main.yml +++ b/tests/integration/targets/docker_container_info/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_host_info/aliases b/tests/integration/targets/docker_host_info/aliases index 02b78723..9683a6a5 100644 --- a/tests/integration/targets/docker_host_info/aliases +++ b/tests/integration/targets/docker_host_info/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group4 destructive diff --git a/tests/integration/targets/docker_host_info/meta/main.yml b/tests/integration/targets/docker_host_info/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_host_info/meta/main.yml +++ b/tests/integration/targets/docker_host_info/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_host_info/tasks/main.yml b/tests/integration/targets/docker_host_info/tasks/main.yml index ad51293f..e26790f3 100644 --- a/tests/integration/targets/docker_host_info/tasks/main.yml +++ b/tests/integration/targets/docker_host_info/tasks/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_host_info/tasks/test_host_info.yml b/tests/integration/targets/docker_host_info/tasks/test_host_info.yml index 55619c07..f7ec8b2c 100644 --- a/tests/integration/targets/docker_host_info/tasks/test_host_info.yml +++ b/tests/integration/targets/docker_host_info/tasks/test_host_info.yml @@ -1,4 +1,8 @@ --- +# 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: Create random container/volume name set_fact: cname: "{{ 'ansible-docker-test-%0x' % ((2**32) | random) }}" diff --git a/tests/integration/targets/docker_image/aliases b/tests/integration/targets/docker_image/aliases index 02b78723..9683a6a5 100644 --- a/tests/integration/targets/docker_image/aliases +++ b/tests/integration/targets/docker_image/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group4 destructive diff --git a/tests/integration/targets/docker_image/meta/main.yml b/tests/integration/targets/docker_image/meta/main.yml index e08907d6..f7ba9ab1 100644 --- a/tests/integration/targets/docker_image/meta/main.yml +++ b/tests/integration/targets/docker_image/meta/main.yml @@ -1,4 +1,8 @@ --- +# 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 + dependencies: - setup_docker_registry - setup_remote_tmp_dir diff --git a/tests/integration/targets/docker_image/tasks/main.yml b/tests/integration/targets/docker_image/tasks/main.yml index 2be493eb..88b23cfe 100644 --- a/tests/integration/targets/docker_image/tasks/main.yml +++ b/tests/integration/targets/docker_image/tasks/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_image/tasks/run-test.yml b/tests/integration/targets/docker_image/tasks/run-test.yml index a2999370..65853ddd 100644 --- a/tests/integration/targets/docker_image/tasks/run-test.yml +++ b/tests/integration/targets/docker_image/tasks/run-test.yml @@ -1,3 +1,7 @@ --- +# 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: "Loading tasks from {{ item }}" include_tasks: "{{ item }}" diff --git a/tests/integration/targets/docker_image/tasks/test.yml b/tests/integration/targets/docker_image/tasks/test.yml index a432f5d7..9740e255 100644 --- a/tests/integration/targets/docker_image/tasks/test.yml +++ b/tests/integration/targets/docker_image/tasks/test.yml @@ -1,4 +1,8 @@ --- +# 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: Create random name prefix set_fact: name_prefix: "{{ 'ansible-docker-test-%0x' % ((2**32) | random) }}" diff --git a/tests/integration/targets/docker_image/tasks/tests/basic.yml b/tests/integration/targets/docker_image/tasks/tests/basic.yml index b5e304dc..a6954274 100644 --- a/tests/integration/targets/docker_image/tasks/tests/basic.yml +++ b/tests/integration/targets/docker_image/tasks/tests/basic.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### ## basic ########################################################### #################################################################### diff --git a/tests/integration/targets/docker_image/tasks/tests/docker_image.yml b/tests/integration/targets/docker_image/tasks/tests/docker_image.yml index fe61b301..8035525b 100644 --- a/tests/integration/targets/docker_image/tasks/tests/docker_image.yml +++ b/tests/integration/targets/docker_image/tasks/tests/docker_image.yml @@ -1,4 +1,8 @@ --- +# 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 image name set_fact: iname: "{{ name_prefix ~ '-options' }}" diff --git a/tests/integration/targets/docker_image/tasks/tests/options.yml b/tests/integration/targets/docker_image/tasks/tests/options.yml index c873b4e6..b8eb823b 100644 --- a/tests/integration/targets/docker_image/tasks/tests/options.yml +++ b/tests/integration/targets/docker_image/tasks/tests/options.yml @@ -1,4 +1,8 @@ --- +# 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 image name set_fact: iname: "{{ name_prefix ~ '-options' }}" diff --git a/tests/integration/targets/docker_image/templates/Dockerfile b/tests/integration/targets/docker_image/templates/Dockerfile index c5032944..286094b9 100644 --- a/tests/integration/targets/docker_image/templates/Dockerfile +++ b/tests/integration/targets/docker_image/templates/Dockerfile @@ -1,3 +1,7 @@ +# 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 + FROM {{ docker_test_image_busybox }} ENV foo /bar WORKDIR ${foo} diff --git a/tests/integration/targets/docker_image/templates/EtcHostsDockerfile b/tests/integration/targets/docker_image/templates/EtcHostsDockerfile index f1b54e3b..bc21b966 100644 --- a/tests/integration/targets/docker_image/templates/EtcHostsDockerfile +++ b/tests/integration/targets/docker_image/templates/EtcHostsDockerfile @@ -1,3 +1,7 @@ +# 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 + FROM {{ docker_test_image_busybox }} # This should fail building if docker cannot resolve some-custom-host RUN ping -c1 some-custom-host diff --git a/tests/integration/targets/docker_image/templates/MyDockerfile b/tests/integration/targets/docker_image/templates/MyDockerfile index 68bca8a2..24b1c926 100644 --- a/tests/integration/targets/docker_image/templates/MyDockerfile +++ b/tests/integration/targets/docker_image/templates/MyDockerfile @@ -1,3 +1,7 @@ +# 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 + FROM {{ docker_test_image_alpine }} ENV INSTALL_PATH /newdata RUN mkdir -p $INSTALL_PATH diff --git a/tests/integration/targets/docker_image/templates/StagedDockerfile b/tests/integration/targets/docker_image/templates/StagedDockerfile index fc4623a3..da225342 100644 --- a/tests/integration/targets/docker_image/templates/StagedDockerfile +++ b/tests/integration/targets/docker_image/templates/StagedDockerfile @@ -1,3 +1,7 @@ +# 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 + FROM {{ docker_test_image_busybox }} AS first ENV dir /first WORKDIR ${dir} diff --git a/tests/integration/targets/docker_image_info/aliases b/tests/integration/targets/docker_image_info/aliases index 02b78723..9683a6a5 100644 --- a/tests/integration/targets/docker_image_info/aliases +++ b/tests/integration/targets/docker_image_info/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group4 destructive diff --git a/tests/integration/targets/docker_image_info/meta/main.yml b/tests/integration/targets/docker_image_info/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_image_info/meta/main.yml +++ b/tests/integration/targets/docker_image_info/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_image_info/tasks/main.yml b/tests/integration/targets/docker_image_info/tasks/main.yml index 559daaef..5bd053ac 100644 --- a/tests/integration/targets/docker_image_info/tasks/main.yml +++ b/tests/integration/targets/docker_image_info/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_image_load/aliases b/tests/integration/targets/docker_image_load/aliases index 02b78723..9683a6a5 100644 --- a/tests/integration/targets/docker_image_load/aliases +++ b/tests/integration/targets/docker_image_load/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group4 destructive diff --git a/tests/integration/targets/docker_image_load/meta/main.yml b/tests/integration/targets/docker_image_load/meta/main.yml index a2419b9a..2650229d 100644 --- a/tests/integration/targets/docker_image_load/meta/main.yml +++ b/tests/integration/targets/docker_image_load/meta/main.yml @@ -1,4 +1,8 @@ --- +# 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 + dependencies: - setup_docker - setup_remote_tmp_dir diff --git a/tests/integration/targets/docker_image_load/tasks/main.yml b/tests/integration/targets/docker_image_load/tasks/main.yml index 2be493eb..88b23cfe 100644 --- a/tests/integration/targets/docker_image_load/tasks/main.yml +++ b/tests/integration/targets/docker_image_load/tasks/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_image_load/tasks/run-test.yml b/tests/integration/targets/docker_image_load/tasks/run-test.yml index a2999370..65853ddd 100644 --- a/tests/integration/targets/docker_image_load/tasks/run-test.yml +++ b/tests/integration/targets/docker_image_load/tasks/run-test.yml @@ -1,3 +1,7 @@ --- +# 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: "Loading tasks from {{ item }}" include_tasks: "{{ item }}" diff --git a/tests/integration/targets/docker_image_load/tasks/test.yml b/tests/integration/targets/docker_image_load/tasks/test.yml index fbe9beaa..3563419d 100644 --- a/tests/integration/targets/docker_image_load/tasks/test.yml +++ b/tests/integration/targets/docker_image_load/tasks/test.yml @@ -1,4 +1,8 @@ --- +# 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: Create random name prefix set_fact: name_prefix: "{{ 'ansible-docker-test-%0x' % ((2**32) | random) }}" diff --git a/tests/integration/targets/docker_image_load/tasks/tests/basic.yml b/tests/integration/targets/docker_image_load/tasks/tests/basic.yml index 58719e9f..8d9de994 100644 --- a/tests/integration/targets/docker_image_load/tasks/tests/basic.yml +++ b/tests/integration/targets/docker_image_load/tasks/tests/basic.yml @@ -1,4 +1,8 @@ --- +# 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 + - set_fact: image_names: - "{{ docker_test_image_hello_world }}" diff --git a/tests/integration/targets/docker_login/aliases b/tests/integration/targets/docker_login/aliases index 02b78723..9683a6a5 100644 --- a/tests/integration/targets/docker_login/aliases +++ b/tests/integration/targets/docker_login/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group4 destructive diff --git a/tests/integration/targets/docker_login/meta/main.yml b/tests/integration/targets/docker_login/meta/main.yml index 21d7a58f..3133a036 100644 --- a/tests/integration/targets/docker_login/meta/main.yml +++ b/tests/integration/targets/docker_login/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker_registry diff --git a/tests/integration/targets/docker_login/tasks/main.yml b/tests/integration/targets/docker_login/tasks/main.yml index 115c31e6..88b23cfe 100644 --- a/tests/integration/targets/docker_login/tasks/main.yml +++ b/tests/integration/targets/docker_login/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_login/tasks/run-test.yml b/tests/integration/targets/docker_login/tasks/run-test.yml index a2999370..65853ddd 100644 --- a/tests/integration/targets/docker_login/tasks/run-test.yml +++ b/tests/integration/targets/docker_login/tasks/run-test.yml @@ -1,3 +1,7 @@ --- +# 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: "Loading tasks from {{ item }}" include_tasks: "{{ item }}" diff --git a/tests/integration/targets/docker_login/tasks/test.yml b/tests/integration/targets/docker_login/tasks/test.yml index b60b7091..bd99acc0 100644 --- a/tests/integration/targets/docker_login/tasks/test.yml +++ b/tests/integration/targets/docker_login/tasks/test.yml @@ -1,4 +1,8 @@ --- +# 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 + - block: - include_tasks: run-test.yml with_fileglob: diff --git a/tests/integration/targets/docker_login/tasks/tests/docker_login.yml b/tests/integration/targets/docker_login/tasks/tests/docker_login.yml index 6b7dc701..84ba3d87 100644 --- a/tests/integration/targets/docker_login/tasks/tests/docker_login.yml +++ b/tests/integration/targets/docker_login/tasks/tests/docker_login.yml @@ -1,4 +1,8 @@ --- +# 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 + - block: - name: Log out server docker_login: diff --git a/tests/integration/targets/docker_login/tasks/tests/multiple-servers.yml b/tests/integration/targets/docker_login/tasks/tests/multiple-servers.yml index 2ad0b66f..7ffd0978 100644 --- a/tests/integration/targets/docker_login/tasks/tests/multiple-servers.yml +++ b/tests/integration/targets/docker_login/tasks/tests/multiple-servers.yml @@ -1,4 +1,8 @@ --- +# 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 + - block: - name: Log out server 1 docker_login: diff --git a/tests/integration/targets/docker_network/aliases b/tests/integration/targets/docker_network/aliases index 02b78723..9683a6a5 100644 --- a/tests/integration/targets/docker_network/aliases +++ b/tests/integration/targets/docker_network/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group4 destructive diff --git a/tests/integration/targets/docker_network/meta/main.yml b/tests/integration/targets/docker_network/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_network/meta/main.yml +++ b/tests/integration/targets/docker_network/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_network/tasks/main.yml b/tests/integration/targets/docker_network/tasks/main.yml index d172b1dd..4f4fad06 100644 --- a/tests/integration/targets/docker_network/tasks/main.yml +++ b/tests/integration/targets/docker_network/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_network/tasks/run-test.yml b/tests/integration/targets/docker_network/tasks/run-test.yml index a2999370..65853ddd 100644 --- a/tests/integration/targets/docker_network/tasks/run-test.yml +++ b/tests/integration/targets/docker_network/tasks/run-test.yml @@ -1,3 +1,7 @@ --- +# 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: "Loading tasks from {{ item }}" include_tasks: "{{ item }}" diff --git a/tests/integration/targets/docker_network/tasks/tests/basic.yml b/tests/integration/targets/docker_network/tasks/tests/basic.yml index e6290715..4df2f108 100644 --- a/tests/integration/targets/docker_network/tasks/tests/basic.yml +++ b/tests/integration/targets/docker_network/tasks/tests/basic.yml @@ -1,4 +1,8 @@ --- +# 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: cname_1: "{{ name_prefix ~ '-container-1' }}" diff --git a/tests/integration/targets/docker_network/tasks/tests/ipam.yml b/tests/integration/targets/docker_network/tasks/tests/ipam.yml index d3fccdbd..17cea227 100644 --- a/tests/integration/targets/docker_network/tasks/tests/ipam.yml +++ b/tests/integration/targets/docker_network/tasks/tests/ipam.yml @@ -1,4 +1,8 @@ --- +# 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 network names set_fact: nname_ipam_0: "{{ name_prefix ~ '-network-ipam-0' }}" diff --git a/tests/integration/targets/docker_network/tasks/tests/options.yml b/tests/integration/targets/docker_network/tasks/tests/options.yml index f8b74b5f..f05c93b3 100644 --- a/tests/integration/targets/docker_network/tasks/tests/options.yml +++ b/tests/integration/targets/docker_network/tasks/tests/options.yml @@ -1,4 +1,8 @@ --- +# 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 network name set_fact: nname_1: "{{ name_prefix ~ '-network-1' }}" diff --git a/tests/integration/targets/docker_network/tasks/tests/overlay.yml b/tests/integration/targets/docker_network/tasks/tests/overlay.yml index cd7f805f..f89d8f9a 100644 --- a/tests/integration/targets/docker_network/tasks/tests/overlay.yml +++ b/tests/integration/targets/docker_network/tasks/tests/overlay.yml @@ -1,4 +1,8 @@ --- +# 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 network name set_fact: nname_1: "{{ name_prefix ~ '-network-1' }}" diff --git a/tests/integration/targets/docker_network/tasks/tests/substring.yml b/tests/integration/targets/docker_network/tasks/tests/substring.yml index bdee190e..b4b37b27 100644 --- a/tests/integration/targets/docker_network/tasks/tests/substring.yml +++ b/tests/integration/targets/docker_network/tasks/tests/substring.yml @@ -1,4 +1,8 @@ --- +# 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' }}" diff --git a/tests/integration/targets/docker_network_info/aliases b/tests/integration/targets/docker_network_info/aliases index 02b78723..9683a6a5 100644 --- a/tests/integration/targets/docker_network_info/aliases +++ b/tests/integration/targets/docker_network_info/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group4 destructive diff --git a/tests/integration/targets/docker_network_info/meta/main.yml b/tests/integration/targets/docker_network_info/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_network_info/meta/main.yml +++ b/tests/integration/targets/docker_network_info/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_network_info/tasks/main.yml b/tests/integration/targets/docker_network_info/tasks/main.yml index 34f46559..ac80e2ed 100644 --- a/tests/integration/targets/docker_network_info/tasks/main.yml +++ b/tests/integration/targets/docker_network_info/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_node/aliases b/tests/integration/targets/docker_node/aliases index f225f586..e0f02170 100644 --- a/tests/integration/targets/docker_node/aliases +++ b/tests/integration/targets/docker_node/aliases @@ -1,3 +1,7 @@ +# 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 + shippable/posix/group2 destructive needs/root diff --git a/tests/integration/targets/docker_node/meta/main.yml b/tests/integration/targets/docker_node/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_node/meta/main.yml +++ b/tests/integration/targets/docker_node/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_node/tasks/main.yml b/tests/integration/targets/docker_node/tasks/main.yml index a91efc59..cb0f7d3d 100644 --- a/tests/integration/targets/docker_node/tasks/main.yml +++ b/tests/integration/targets/docker_node/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_node/tasks/test_node.yml b/tests/integration/targets/docker_node/tasks/test_node.yml index bdc01afb..4358fea1 100644 --- a/tests/integration/targets/docker_node/tasks/test_node.yml +++ b/tests/integration/targets/docker_node/tasks/test_node.yml @@ -1,4 +1,8 @@ --- +# 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 + - block: - name: Make sure we're not already using Docker swarm docker_swarm: diff --git a/tests/integration/targets/docker_node_info/aliases b/tests/integration/targets/docker_node_info/aliases index ca7c9128..bbb6ea09 100644 --- a/tests/integration/targets/docker_node_info/aliases +++ b/tests/integration/targets/docker_node_info/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group2 destructive diff --git a/tests/integration/targets/docker_node_info/meta/main.yml b/tests/integration/targets/docker_node_info/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_node_info/meta/main.yml +++ b/tests/integration/targets/docker_node_info/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_node_info/tasks/main.yml b/tests/integration/targets/docker_node_info/tasks/main.yml index 5b651653..7d3a1b18 100644 --- a/tests/integration/targets/docker_node_info/tasks/main.yml +++ b/tests/integration/targets/docker_node_info/tasks/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_node_info/tasks/test_node_info.yml b/tests/integration/targets/docker_node_info/tasks/test_node_info.yml index 3ee5549b..d6f78d56 100644 --- a/tests/integration/targets/docker_node_info/tasks/test_node_info.yml +++ b/tests/integration/targets/docker_node_info/tasks/test_node_info.yml @@ -1,4 +1,8 @@ --- +# 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 + - block: - name: Make sure we're not already using Docker swarm docker_swarm: diff --git a/tests/integration/targets/docker_plugin/aliases b/tests/integration/targets/docker_plugin/aliases index 02b78723..9683a6a5 100644 --- a/tests/integration/targets/docker_plugin/aliases +++ b/tests/integration/targets/docker_plugin/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group4 destructive diff --git a/tests/integration/targets/docker_plugin/meta/main.yml b/tests/integration/targets/docker_plugin/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_plugin/meta/main.yml +++ b/tests/integration/targets/docker_plugin/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_plugin/tasks/main.yaml b/tests/integration/targets/docker_plugin/tasks/main.yaml index 78398824..58483c24 100644 --- a/tests/integration/targets/docker_plugin/tasks/main.yaml +++ b/tests/integration/targets/docker_plugin/tasks/main.yaml @@ -1,3 +1,8 @@ +--- +# 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: Create random name prefix set_fact: name_prefix: "cvmfs/overlay2-graphdriver" diff --git a/tests/integration/targets/docker_plugin/tasks/run-test.yml b/tests/integration/targets/docker_plugin/tasks/run-test.yml index a2999370..65853ddd 100644 --- a/tests/integration/targets/docker_plugin/tasks/run-test.yml +++ b/tests/integration/targets/docker_plugin/tasks/run-test.yml @@ -1,3 +1,7 @@ --- +# 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: "Loading tasks from {{ item }}" include_tasks: "{{ item }}" diff --git a/tests/integration/targets/docker_plugin/tasks/tests/basic.yml b/tests/integration/targets/docker_plugin/tasks/tests/basic.yml index e94133d7..a7b9d593 100644 --- a/tests/integration/targets/docker_plugin/tasks/tests/basic.yml +++ b/tests/integration/targets/docker_plugin/tasks/tests/basic.yml @@ -1,4 +1,8 @@ --- +# 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 plugin name set_fact: plugin_name: "{{ name_prefix }}" diff --git a/tests/integration/targets/docker_plugin/tasks/tests/basic_with_alias.yml b/tests/integration/targets/docker_plugin/tasks/tests/basic_with_alias.yml index ca5896b2..c26b188a 100644 --- a/tests/integration/targets/docker_plugin/tasks/tests/basic_with_alias.yml +++ b/tests/integration/targets/docker_plugin/tasks/tests/basic_with_alias.yml @@ -1,4 +1,8 @@ --- +# 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: Register plugin name and alias set_fact: plugin_name: "{{ name_prefix }}" diff --git a/tests/integration/targets/docker_prune/aliases b/tests/integration/targets/docker_prune/aliases index 02b78723..9683a6a5 100644 --- a/tests/integration/targets/docker_prune/aliases +++ b/tests/integration/targets/docker_prune/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group4 destructive diff --git a/tests/integration/targets/docker_prune/meta/main.yml b/tests/integration/targets/docker_prune/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_prune/meta/main.yml +++ b/tests/integration/targets/docker_prune/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_prune/tasks/main.yml b/tests/integration/targets/docker_prune/tasks/main.yml index 2a8ab450..799f1788 100644 --- a/tests/integration/targets/docker_prune/tasks/main.yml +++ b/tests/integration/targets/docker_prune/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_secret/aliases b/tests/integration/targets/docker_secret/aliases index cdf1b9b1..b84dff7e 100644 --- a/tests/integration/targets/docker_secret/aliases +++ b/tests/integration/targets/docker_secret/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group3 destructive diff --git a/tests/integration/targets/docker_secret/meta/main.yml b/tests/integration/targets/docker_secret/meta/main.yml index a2419b9a..2650229d 100644 --- a/tests/integration/targets/docker_secret/meta/main.yml +++ b/tests/integration/targets/docker_secret/meta/main.yml @@ -1,4 +1,8 @@ --- +# 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 + dependencies: - setup_docker - setup_remote_tmp_dir diff --git a/tests/integration/targets/docker_secret/tasks/main.yml b/tests/integration/targets/docker_secret/tasks/main.yml index 68d3df8d..291f6aa9 100644 --- a/tests/integration/targets/docker_secret/tasks/main.yml +++ b/tests/integration/targets/docker_secret/tasks/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_secret/tasks/test_secrets.yml b/tests/integration/targets/docker_secret/tasks/test_secrets.yml index 3d819768..992c65b4 100644 --- a/tests/integration/targets/docker_secret/tasks/test_secrets.yml +++ b/tests/integration/targets/docker_secret/tasks/test_secrets.yml @@ -1,4 +1,8 @@ --- +# 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 + - block: - name: Make sure we're not already using Docker swarm docker_swarm: diff --git a/tests/integration/targets/docker_stack/aliases b/tests/integration/targets/docker_stack/aliases index ca7c9128..bbb6ea09 100644 --- a/tests/integration/targets/docker_stack/aliases +++ b/tests/integration/targets/docker_stack/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group2 destructive diff --git a/tests/integration/targets/docker_stack/meta/main.yml b/tests/integration/targets/docker_stack/meta/main.yml index a2419b9a..2650229d 100644 --- a/tests/integration/targets/docker_stack/meta/main.yml +++ b/tests/integration/targets/docker_stack/meta/main.yml @@ -1,4 +1,8 @@ --- +# 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 + dependencies: - setup_docker - setup_remote_tmp_dir diff --git a/tests/integration/targets/docker_stack/tasks/main.yml b/tests/integration/targets/docker_stack/tasks/main.yml index 5ed63f3e..390e36ef 100644 --- a/tests/integration/targets/docker_stack/tasks/main.yml +++ b/tests/integration/targets/docker_stack/tasks/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_stack/tasks/test_stack.yml b/tests/integration/targets/docker_stack/tasks/test_stack.yml index 8d0136ac..aa7468b9 100644 --- a/tests/integration/targets/docker_stack/tasks/test_stack.yml +++ b/tests/integration/targets/docker_stack/tasks/test_stack.yml @@ -1,4 +1,8 @@ --- +# 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 + - block: - name: Make sure we're not already using Docker swarm docker_swarm: diff --git a/tests/integration/targets/docker_stack/templates/stack_compose_base.yml b/tests/integration/targets/docker_stack/templates/stack_compose_base.yml index b5162d68..03603327 100644 --- a/tests/integration/targets/docker_stack/templates/stack_compose_base.yml +++ b/tests/integration/targets/docker_stack/templates/stack_compose_base.yml @@ -1,3 +1,8 @@ +--- +# 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 + version: '3' services: busybox: diff --git a/tests/integration/targets/docker_stack/templates/stack_compose_overrides.yml b/tests/integration/targets/docker_stack/templates/stack_compose_overrides.yml index 1b81c71b..8743f1e9 100644 --- a/tests/integration/targets/docker_stack/templates/stack_compose_overrides.yml +++ b/tests/integration/targets/docker_stack/templates/stack_compose_overrides.yml @@ -1,3 +1,8 @@ +--- +# 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 + version: '3' services: busybox: diff --git a/tests/integration/targets/docker_stack/vars/main.yml b/tests/integration/targets/docker_stack/vars/main.yml index 7751c86e..a668012f 100644 --- a/tests/integration/targets/docker_stack/vars/main.yml +++ b/tests/integration/targets/docker_stack/vars/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + stack_compose_base: version: '3' services: diff --git a/tests/integration/targets/docker_stack_info/aliases b/tests/integration/targets/docker_stack_info/aliases index ca7c9128..bbb6ea09 100644 --- a/tests/integration/targets/docker_stack_info/aliases +++ b/tests/integration/targets/docker_stack_info/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group2 destructive diff --git a/tests/integration/targets/docker_stack_info/meta/main.yml b/tests/integration/targets/docker_stack_info/meta/main.yml index a2419b9a..2650229d 100644 --- a/tests/integration/targets/docker_stack_info/meta/main.yml +++ b/tests/integration/targets/docker_stack_info/meta/main.yml @@ -1,4 +1,8 @@ --- +# 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 + dependencies: - setup_docker - setup_remote_tmp_dir diff --git a/tests/integration/targets/docker_stack_info/tasks/main.yml b/tests/integration/targets/docker_stack_info/tasks/main.yml index b499f80d..c6cbb617 100644 --- a/tests/integration/targets/docker_stack_info/tasks/main.yml +++ b/tests/integration/targets/docker_stack_info/tasks/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_stack_info/tasks/test_stack_info.yml b/tests/integration/targets/docker_stack_info/tasks/test_stack_info.yml index ca93377f..0c10ab70 100644 --- a/tests/integration/targets/docker_stack_info/tasks/test_stack_info.yml +++ b/tests/integration/targets/docker_stack_info/tasks/test_stack_info.yml @@ -1,4 +1,8 @@ --- +# 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 + - block: - name: Make sure we're not already using Docker swarm docker_swarm: diff --git a/tests/integration/targets/docker_stack_info/templates/stack_compose_base.yml b/tests/integration/targets/docker_stack_info/templates/stack_compose_base.yml index b5162d68..03603327 100644 --- a/tests/integration/targets/docker_stack_info/templates/stack_compose_base.yml +++ b/tests/integration/targets/docker_stack_info/templates/stack_compose_base.yml @@ -1,3 +1,8 @@ +--- +# 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 + version: '3' services: busybox: diff --git a/tests/integration/targets/docker_stack_info/templates/stack_compose_overrides.yml b/tests/integration/targets/docker_stack_info/templates/stack_compose_overrides.yml index 1b81c71b..8743f1e9 100644 --- a/tests/integration/targets/docker_stack_info/templates/stack_compose_overrides.yml +++ b/tests/integration/targets/docker_stack_info/templates/stack_compose_overrides.yml @@ -1,3 +1,8 @@ +--- +# 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 + version: '3' services: busybox: diff --git a/tests/integration/targets/docker_stack_info/vars/main.yml b/tests/integration/targets/docker_stack_info/vars/main.yml index 7751c86e..a668012f 100644 --- a/tests/integration/targets/docker_stack_info/vars/main.yml +++ b/tests/integration/targets/docker_stack_info/vars/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + stack_compose_base: version: '3' services: diff --git a/tests/integration/targets/docker_stack_task_info/aliases b/tests/integration/targets/docker_stack_task_info/aliases index ca7c9128..bbb6ea09 100644 --- a/tests/integration/targets/docker_stack_task_info/aliases +++ b/tests/integration/targets/docker_stack_task_info/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group2 destructive diff --git a/tests/integration/targets/docker_stack_task_info/meta/main.yml b/tests/integration/targets/docker_stack_task_info/meta/main.yml index a2419b9a..2650229d 100644 --- a/tests/integration/targets/docker_stack_task_info/meta/main.yml +++ b/tests/integration/targets/docker_stack_task_info/meta/main.yml @@ -1,4 +1,8 @@ --- +# 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 + dependencies: - setup_docker - setup_remote_tmp_dir diff --git a/tests/integration/targets/docker_stack_task_info/tasks/main.yml b/tests/integration/targets/docker_stack_task_info/tasks/main.yml index 0990e90b..b52fa9c7 100644 --- a/tests/integration/targets/docker_stack_task_info/tasks/main.yml +++ b/tests/integration/targets/docker_stack_task_info/tasks/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_stack_task_info/tasks/test_stack_task_info.yml b/tests/integration/targets/docker_stack_task_info/tasks/test_stack_task_info.yml index 6843fbc8..6dd58337 100644 --- a/tests/integration/targets/docker_stack_task_info/tasks/test_stack_task_info.yml +++ b/tests/integration/targets/docker_stack_task_info/tasks/test_stack_task_info.yml @@ -1,4 +1,8 @@ --- +# 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 + - block: - name: Make sure we're not already using Docker swarm docker_swarm: diff --git a/tests/integration/targets/docker_stack_task_info/templates/stack_compose_base.yml b/tests/integration/targets/docker_stack_task_info/templates/stack_compose_base.yml index b5162d68..03603327 100644 --- a/tests/integration/targets/docker_stack_task_info/templates/stack_compose_base.yml +++ b/tests/integration/targets/docker_stack_task_info/templates/stack_compose_base.yml @@ -1,3 +1,8 @@ +--- +# 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 + version: '3' services: busybox: diff --git a/tests/integration/targets/docker_stack_task_info/templates/stack_compose_overrides.yml b/tests/integration/targets/docker_stack_task_info/templates/stack_compose_overrides.yml index 1b81c71b..8743f1e9 100644 --- a/tests/integration/targets/docker_stack_task_info/templates/stack_compose_overrides.yml +++ b/tests/integration/targets/docker_stack_task_info/templates/stack_compose_overrides.yml @@ -1,3 +1,8 @@ +--- +# 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 + version: '3' services: busybox: diff --git a/tests/integration/targets/docker_stack_task_info/vars/main.yml b/tests/integration/targets/docker_stack_task_info/vars/main.yml index 7751c86e..a668012f 100644 --- a/tests/integration/targets/docker_stack_task_info/vars/main.yml +++ b/tests/integration/targets/docker_stack_task_info/vars/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + stack_compose_base: version: '3' services: diff --git a/tests/integration/targets/docker_swarm/aliases b/tests/integration/targets/docker_swarm/aliases index 3bab2a23..57dc7bbe 100644 --- a/tests/integration/targets/docker_swarm/aliases +++ b/tests/integration/targets/docker_swarm/aliases @@ -1,3 +1,7 @@ +# 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 + shippable/posix/group1 destructive needs/root diff --git a/tests/integration/targets/docker_swarm/meta/main.yml b/tests/integration/targets/docker_swarm/meta/main.yml index 1257e9e0..e7ff3d68 100644 --- a/tests/integration/targets/docker_swarm/meta/main.yml +++ b/tests/integration/targets/docker_swarm/meta/main.yml @@ -1,4 +1,8 @@ --- +# 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 + dependencies: - setup_docker - setup_openssl diff --git a/tests/integration/targets/docker_swarm/tasks/cleanup.yml b/tests/integration/targets/docker_swarm/tasks/cleanup.yml index e99946e0..c49de861 100644 --- a/tests/integration/targets/docker_swarm/tasks/cleanup.yml +++ b/tests/integration/targets/docker_swarm/tasks/cleanup.yml @@ -1,3 +1,8 @@ +--- +# 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 diff --git a/tests/integration/targets/docker_swarm/tasks/main.yml b/tests/integration/targets/docker_swarm/tasks/main.yml index 597b71a8..16f68153 100644 --- a/tests/integration/targets/docker_swarm/tasks/main.yml +++ b/tests/integration/targets/docker_swarm/tasks/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_swarm/tasks/run-test.yml b/tests/integration/targets/docker_swarm/tasks/run-test.yml index e69de29b..f55df21f 100644 --- a/tests/integration/targets/docker_swarm/tasks/run-test.yml +++ b/tests/integration/targets/docker_swarm/tasks/run-test.yml @@ -0,0 +1,4 @@ +--- +# 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 diff --git a/tests/integration/targets/docker_swarm/tasks/tests/basic.yml b/tests/integration/targets/docker_swarm/tasks/tests/basic.yml index 4e9005fc..275ff16b 100644 --- a/tests/integration/targets/docker_swarm/tasks/tests/basic.yml +++ b/tests/integration/targets/docker_swarm/tasks/tests/basic.yml @@ -1,3 +1,8 @@ +--- +# 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 + - debug: msg: Running tests/basic.yml diff --git a/tests/integration/targets/docker_swarm/tasks/tests/options-ca.yml b/tests/integration/targets/docker_swarm/tasks/tests/options-ca.yml index ab94d507..86661ecb 100644 --- a/tests/integration/targets/docker_swarm/tasks/tests/options-ca.yml +++ b/tests/integration/targets/docker_swarm/tasks/tests/options-ca.yml @@ -1,3 +1,8 @@ +--- +# 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 + - debug: msg: Running tests/options-ca.yml - name: options-ca diff --git a/tests/integration/targets/docker_swarm/tasks/tests/options.yml b/tests/integration/targets/docker_swarm/tasks/tests/options.yml index c23ab3a6..6ff4ceac 100644 --- a/tests/integration/targets/docker_swarm/tasks/tests/options.yml +++ b/tests/integration/targets/docker_swarm/tasks/tests/options.yml @@ -1,3 +1,8 @@ +--- +# 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 + - debug: msg: Running tests/options.yml diff --git a/tests/integration/targets/docker_swarm/tasks/tests/remote-addr-pool.yml b/tests/integration/targets/docker_swarm/tasks/tests/remote-addr-pool.yml index a900953e..8e229f5a 100644 --- a/tests/integration/targets/docker_swarm/tasks/tests/remote-addr-pool.yml +++ b/tests/integration/targets/docker_swarm/tasks/tests/remote-addr-pool.yml @@ -1,3 +1,8 @@ +--- +# 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 + - debug: msg: Running tests/remote-addr-pool.yml diff --git a/tests/integration/targets/docker_swarm_info/aliases b/tests/integration/targets/docker_swarm_info/aliases index 6eae8bd8..34334fd8 100644 --- a/tests/integration/targets/docker_swarm_info/aliases +++ b/tests/integration/targets/docker_swarm_info/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group1 destructive diff --git a/tests/integration/targets/docker_swarm_info/meta/main.yml b/tests/integration/targets/docker_swarm_info/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_swarm_info/meta/main.yml +++ b/tests/integration/targets/docker_swarm_info/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_swarm_info/tasks/main.yml b/tests/integration/targets/docker_swarm_info/tasks/main.yml index 2aeaa8e5..b24184db 100644 --- a/tests/integration/targets/docker_swarm_info/tasks/main.yml +++ b/tests/integration/targets/docker_swarm_info/tasks/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_swarm_info/tasks/test_swarm_info.yml b/tests/integration/targets/docker_swarm_info/tasks/test_swarm_info.yml index 349d7cc5..a521a689 100644 --- a/tests/integration/targets/docker_swarm_info/tasks/test_swarm_info.yml +++ b/tests/integration/targets/docker_swarm_info/tasks/test_swarm_info.yml @@ -1,4 +1,8 @@ --- +# 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 + - block: - name: Make sure we're not already using Docker swarm docker_swarm: diff --git a/tests/integration/targets/docker_swarm_service/aliases b/tests/integration/targets/docker_swarm_service/aliases index cdf1b9b1..b84dff7e 100644 --- a/tests/integration/targets/docker_swarm_service/aliases +++ b/tests/integration/targets/docker_swarm_service/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group3 destructive diff --git a/tests/integration/targets/docker_swarm_service/files/env-file-1 b/tests/integration/targets/docker_swarm_service/files/env-file-1 index b15f1b64..87bc9dec 100644 --- a/tests/integration/targets/docker_swarm_service/files/env-file-1 +++ b/tests/integration/targets/docker_swarm_service/files/env-file-1 @@ -1,2 +1,6 @@ +# 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 + TEST3=val3 TEST4=val4 diff --git a/tests/integration/targets/docker_swarm_service/files/env-file-2 b/tests/integration/targets/docker_swarm_service/files/env-file-2 index eff99aca..7f36b44a 100644 --- a/tests/integration/targets/docker_swarm_service/files/env-file-2 +++ b/tests/integration/targets/docker_swarm_service/files/env-file-2 @@ -1,2 +1,6 @@ +# 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 + TEST3=val5 TEST5=val5 diff --git a/tests/integration/targets/docker_swarm_service/meta/main.yml b/tests/integration/targets/docker_swarm_service/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_swarm_service/meta/main.yml +++ b/tests/integration/targets/docker_swarm_service/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_swarm_service/tasks/main.yml b/tests/integration/targets/docker_swarm_service/tasks/main.yml index 019248bb..ffc04719 100644 --- a/tests/integration/targets/docker_swarm_service/tasks/main.yml +++ b/tests/integration/targets/docker_swarm_service/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_swarm_service/tasks/run-test.yml b/tests/integration/targets/docker_swarm_service/tasks/run-test.yml index a2999370..65853ddd 100644 --- a/tests/integration/targets/docker_swarm_service/tasks/run-test.yml +++ b/tests/integration/targets/docker_swarm_service/tasks/run-test.yml @@ -1,3 +1,7 @@ --- +# 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: "Loading tasks from {{ item }}" include_tasks: "{{ item }}" diff --git a/tests/integration/targets/docker_swarm_service/tasks/tests/configs.yml b/tests/integration/targets/docker_swarm_service/tasks/tests/configs.yml index 75bbd4b4..f1008869 100644 --- a/tests/integration/targets/docker_swarm_service/tasks/tests/configs.yml +++ b/tests/integration/targets/docker_swarm_service/tasks/tests/configs.yml @@ -1,4 +1,7 @@ --- +# 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 name set_fact: diff --git a/tests/integration/targets/docker_swarm_service/tasks/tests/logging.yml b/tests/integration/targets/docker_swarm_service/tasks/tests/logging.yml index 938b8a4f..9408196c 100644 --- a/tests/integration/targets/docker_swarm_service/tasks/tests/logging.yml +++ b/tests/integration/targets/docker_swarm_service/tasks/tests/logging.yml @@ -1,4 +1,7 @@ --- +# 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 service name set_fact: diff --git a/tests/integration/targets/docker_swarm_service/tasks/tests/misc.yml b/tests/integration/targets/docker_swarm_service/tasks/tests/misc.yml index af82c42b..a2bf4d7c 100644 --- a/tests/integration/targets/docker_swarm_service/tasks/tests/misc.yml +++ b/tests/integration/targets/docker_swarm_service/tasks/tests/misc.yml @@ -1,4 +1,8 @@ --- +# 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 + - block: - name: Create a swarm service without name register: output diff --git a/tests/integration/targets/docker_swarm_service/tasks/tests/mounts.yml b/tests/integration/targets/docker_swarm_service/tasks/tests/mounts.yml index 441547d9..c90b77c4 100644 --- a/tests/integration/targets/docker_swarm_service/tasks/tests/mounts.yml +++ b/tests/integration/targets/docker_swarm_service/tasks/tests/mounts.yml @@ -1,3 +1,8 @@ +--- +# 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 service name set_fact: service_name: "{{ name_prefix ~ '-mounts' }}" diff --git a/tests/integration/targets/docker_swarm_service/tasks/tests/networks.yml b/tests/integration/targets/docker_swarm_service/tasks/tests/networks.yml index 26a822b6..8e596a33 100644 --- a/tests/integration/targets/docker_swarm_service/tasks/tests/networks.yml +++ b/tests/integration/targets/docker_swarm_service/tasks/tests/networks.yml @@ -1,4 +1,7 @@ --- +# 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 service name set_fact: diff --git a/tests/integration/targets/docker_swarm_service/tasks/tests/options.yml b/tests/integration/targets/docker_swarm_service/tasks/tests/options.yml index cc1a4454..fe7b87e1 100644 --- a/tests/integration/targets/docker_swarm_service/tasks/tests/options.yml +++ b/tests/integration/targets/docker_swarm_service/tasks/tests/options.yml @@ -1,4 +1,7 @@ --- +# 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 service name set_fact: diff --git a/tests/integration/targets/docker_swarm_service/tasks/tests/placement.yml b/tests/integration/targets/docker_swarm_service/tasks/tests/placement.yml index cc4290de..733ac3b9 100644 --- a/tests/integration/targets/docker_swarm_service/tasks/tests/placement.yml +++ b/tests/integration/targets/docker_swarm_service/tasks/tests/placement.yml @@ -1,4 +1,7 @@ --- +# 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 service name set_fact: diff --git a/tests/integration/targets/docker_swarm_service/tasks/tests/resources.yml b/tests/integration/targets/docker_swarm_service/tasks/tests/resources.yml index 8a481067..a216a4eb 100644 --- a/tests/integration/targets/docker_swarm_service/tasks/tests/resources.yml +++ b/tests/integration/targets/docker_swarm_service/tasks/tests/resources.yml @@ -1,4 +1,7 @@ --- +# 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 service name set_fact: diff --git a/tests/integration/targets/docker_swarm_service/tasks/tests/restart_config.yml b/tests/integration/targets/docker_swarm_service/tasks/tests/restart_config.yml index cf7e1668..8c55999e 100644 --- a/tests/integration/targets/docker_swarm_service/tasks/tests/restart_config.yml +++ b/tests/integration/targets/docker_swarm_service/tasks/tests/restart_config.yml @@ -1,4 +1,7 @@ --- +# 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 service name set_fact: diff --git a/tests/integration/targets/docker_swarm_service/tasks/tests/rollback_config.yml b/tests/integration/targets/docker_swarm_service/tasks/tests/rollback_config.yml index 8d97d7e9..7e6a85b5 100644 --- a/tests/integration/targets/docker_swarm_service/tasks/tests/rollback_config.yml +++ b/tests/integration/targets/docker_swarm_service/tasks/tests/rollback_config.yml @@ -1,4 +1,7 @@ --- +# 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 service name set_fact: diff --git a/tests/integration/targets/docker_swarm_service/tasks/tests/secrets.yml b/tests/integration/targets/docker_swarm_service/tasks/tests/secrets.yml index 889f91b7..a658d806 100644 --- a/tests/integration/targets/docker_swarm_service/tasks/tests/secrets.yml +++ b/tests/integration/targets/docker_swarm_service/tasks/tests/secrets.yml @@ -1,4 +1,7 @@ --- +# 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 name set_fact: diff --git a/tests/integration/targets/docker_swarm_service/tasks/tests/update_config.yml b/tests/integration/targets/docker_swarm_service/tasks/tests/update_config.yml index a912c099..faae2a69 100644 --- a/tests/integration/targets/docker_swarm_service/tasks/tests/update_config.yml +++ b/tests/integration/targets/docker_swarm_service/tasks/tests/update_config.yml @@ -1,4 +1,7 @@ --- +# 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 service name set_fact: diff --git a/tests/integration/targets/docker_swarm_service/vars/main.yml b/tests/integration/targets/docker_swarm_service/vars/main.yml index 2ab75f64..836ee41c 100644 --- a/tests/integration/targets/docker_swarm_service/vars/main.yml +++ b/tests/integration/targets/docker_swarm_service/vars/main.yml @@ -1,4 +1,7 @@ --- +# 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 service_expected_output: args: [sleep, '1800'] diff --git a/tests/integration/targets/docker_swarm_service_info/aliases b/tests/integration/targets/docker_swarm_service_info/aliases index cdf1b9b1..b84dff7e 100644 --- a/tests/integration/targets/docker_swarm_service_info/aliases +++ b/tests/integration/targets/docker_swarm_service_info/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group3 destructive diff --git a/tests/integration/targets/docker_swarm_service_info/meta/main.yml b/tests/integration/targets/docker_swarm_service_info/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_swarm_service_info/meta/main.yml +++ b/tests/integration/targets/docker_swarm_service_info/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_swarm_service_info/tasks/main.yml b/tests/integration/targets/docker_swarm_service_info/tasks/main.yml index 66b4b818..cd112a89 100644 --- a/tests/integration/targets/docker_swarm_service_info/tasks/main.yml +++ b/tests/integration/targets/docker_swarm_service_info/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_swarm_service_info/tasks/test_docker_swarm_service_info.yml b/tests/integration/targets/docker_swarm_service_info/tasks/test_docker_swarm_service_info.yml index 48e70a49..d5f4cbdb 100644 --- a/tests/integration/targets/docker_swarm_service_info/tasks/test_docker_swarm_service_info.yml +++ b/tests/integration/targets/docker_swarm_service_info/tasks/test_docker_swarm_service_info.yml @@ -1,4 +1,7 @@ --- +# 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: Generate service base name set_fact: diff --git a/tests/integration/targets/docker_volume/aliases b/tests/integration/targets/docker_volume/aliases index 02b78723..9683a6a5 100644 --- a/tests/integration/targets/docker_volume/aliases +++ b/tests/integration/targets/docker_volume/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group4 destructive diff --git a/tests/integration/targets/docker_volume/meta/main.yml b/tests/integration/targets/docker_volume/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_volume/meta/main.yml +++ b/tests/integration/targets/docker_volume/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_volume/tasks/main.yml b/tests/integration/targets/docker_volume/tasks/main.yml index c796fb57..b356e561 100644 --- a/tests/integration/targets/docker_volume/tasks/main.yml +++ b/tests/integration/targets/docker_volume/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/docker_volume/tasks/run-test.yml b/tests/integration/targets/docker_volume/tasks/run-test.yml index a2999370..65853ddd 100644 --- a/tests/integration/targets/docker_volume/tasks/run-test.yml +++ b/tests/integration/targets/docker_volume/tasks/run-test.yml @@ -1,3 +1,7 @@ --- +# 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: "Loading tasks from {{ item }}" include_tasks: "{{ item }}" diff --git a/tests/integration/targets/docker_volume/tasks/tests/basic.yml b/tests/integration/targets/docker_volume/tasks/tests/basic.yml index 7ee56261..b65bbd9d 100644 --- a/tests/integration/targets/docker_volume/tasks/tests/basic.yml +++ b/tests/integration/targets/docker_volume/tasks/tests/basic.yml @@ -1,4 +1,8 @@ --- +# 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 volume name set_fact: vname: "{{ name_prefix ~ '-basic' }}" diff --git a/tests/integration/targets/docker_volume_info/aliases b/tests/integration/targets/docker_volume_info/aliases index 02b78723..9683a6a5 100644 --- a/tests/integration/targets/docker_volume_info/aliases +++ b/tests/integration/targets/docker_volume_info/aliases @@ -1,2 +1,6 @@ +# 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 + shippable/posix/group4 destructive diff --git a/tests/integration/targets/docker_volume_info/meta/main.yml b/tests/integration/targets/docker_volume_info/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/docker_volume_info/meta/main.yml +++ b/tests/integration/targets/docker_volume_info/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/docker_volume_info/tasks/main.yml b/tests/integration/targets/docker_volume_info/tasks/main.yml index e7007b72..24bd7f5f 100644 --- a/tests/integration/targets/docker_volume_info/tasks/main.yml +++ b/tests/integration/targets/docker_volume_info/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/generic_ssh_connection/aliases b/tests/integration/targets/generic_ssh_connection/aliases index 2642b1f6..9bb86f89 100644 --- a/tests/integration/targets/generic_ssh_connection/aliases +++ b/tests/integration/targets/generic_ssh_connection/aliases @@ -1,3 +1,7 @@ +# 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 + shippable/posix/group4 destructive needs/root diff --git a/tests/integration/targets/generic_ssh_connection/meta/main.yml b/tests/integration/targets/generic_ssh_connection/meta/main.yml index b69559be..6fdc1c8e 100644 --- a/tests/integration/targets/generic_ssh_connection/meta/main.yml +++ b/tests/integration/targets/generic_ssh_connection/meta/main.yml @@ -1,4 +1,8 @@ --- +# 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 + dependencies: - setup_docker - setup_paramiko diff --git a/tests/integration/targets/generic_ssh_connection/tasks/main.yml b/tests/integration/targets/generic_ssh_connection/tasks/main.yml index 61ddc040..74483e50 100644 --- a/tests/integration/targets/generic_ssh_connection/tasks/main.yml +++ b/tests/integration/targets/generic_ssh_connection/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/inventory_docker_containers/aliases b/tests/integration/targets/inventory_docker_containers/aliases index d4bad10d..71a4112c 100644 --- a/tests/integration/targets/inventory_docker_containers/aliases +++ b/tests/integration/targets/inventory_docker_containers/aliases @@ -1,3 +1,7 @@ +# 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 + shippable/posix/group4 destructive needs/root diff --git a/tests/integration/targets/inventory_docker_containers/inventory_1.docker.yml b/tests/integration/targets/inventory_docker_containers/inventory_1.docker.yml index 60a5b056..83fd6260 100644 --- a/tests/integration/targets/inventory_docker_containers/inventory_1.docker.yml +++ b/tests/integration/targets/inventory_docker_containers/inventory_1.docker.yml @@ -1,2 +1,7 @@ +--- +# 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 + plugin: community.docker.docker_containers docker_host: unix://var/run/docker.sock diff --git a/tests/integration/targets/inventory_docker_containers/inventory_2.docker.yml b/tests/integration/targets/inventory_docker_containers/inventory_2.docker.yml index ec8db12e..98349507 100644 --- a/tests/integration/targets/inventory_docker_containers/inventory_2.docker.yml +++ b/tests/integration/targets/inventory_docker_containers/inventory_2.docker.yml @@ -1,3 +1,8 @@ +--- +# 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 + plugin: community.docker.docker_containers docker_host: unix://var/run/docker.sock connection_type: ssh diff --git a/tests/integration/targets/inventory_docker_containers/meta/main.yml b/tests/integration/targets/inventory_docker_containers/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/inventory_docker_containers/meta/main.yml +++ b/tests/integration/targets/inventory_docker_containers/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/inventory_docker_containers/playbooks/docker_cleanup.yml b/tests/integration/targets/inventory_docker_containers/playbooks/docker_cleanup.yml index 34708a52..29341650 100644 --- a/tests/integration/targets/inventory_docker_containers/playbooks/docker_cleanup.yml +++ b/tests/integration/targets/inventory_docker_containers/playbooks/docker_cleanup.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: 127.0.0.1 connection: local gather_facts: yes diff --git a/tests/integration/targets/inventory_docker_containers/playbooks/docker_setup.yml b/tests/integration/targets/inventory_docker_containers/playbooks/docker_setup.yml index bd0ed1a5..5eabe47c 100644 --- a/tests/integration/targets/inventory_docker_containers/playbooks/docker_setup.yml +++ b/tests/integration/targets/inventory_docker_containers/playbooks/docker_setup.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: 127.0.0.1 connection: local vars: diff --git a/tests/integration/targets/inventory_docker_containers/playbooks/test_inventory_1.yml b/tests/integration/targets/inventory_docker_containers/playbooks/test_inventory_1.yml index bf54223f..9dbb7132 100644 --- a/tests/integration/targets/inventory_docker_containers/playbooks/test_inventory_1.yml +++ b/tests/integration/targets/inventory_docker_containers/playbooks/test_inventory_1.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: 127.0.0.1 connection: local # otherwise Ansible will complain that it cannot connect via ssh to 127.0.0.1:22 gather_facts: no diff --git a/tests/integration/targets/inventory_docker_containers/playbooks/test_inventory_2.yml b/tests/integration/targets/inventory_docker_containers/playbooks/test_inventory_2.yml index 12ea02c4..df2e9ff5 100644 --- a/tests/integration/targets/inventory_docker_containers/playbooks/test_inventory_2.yml +++ b/tests/integration/targets/inventory_docker_containers/playbooks/test_inventory_2.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: 127.0.0.1 connection: local # otherwise Ansible will complain that it cannot connect via ssh to 127.0.0.1:22 gather_facts: no diff --git a/tests/integration/targets/inventory_docker_containers/runme.sh b/tests/integration/targets/inventory_docker_containers/runme.sh index 0ea425b8..acc1d5f4 100755 --- a/tests/integration/targets/inventory_docker_containers/runme.sh +++ b/tests/integration/targets/inventory_docker_containers/runme.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# 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 [[ -n "$DEBUG" || -n "$ANSIBLE_DEBUG" ]] && set -x diff --git a/tests/integration/targets/inventory_docker_machine/aliases b/tests/integration/targets/inventory_docker_machine/aliases index 1a7a54b4..e2ad87f1 100644 --- a/tests/integration/targets/inventory_docker_machine/aliases +++ b/tests/integration/targets/inventory_docker_machine/aliases @@ -1,3 +1,7 @@ +# 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 + disabled shippable/posix/group2 destructive diff --git a/tests/integration/targets/inventory_docker_machine/docker-machine b/tests/integration/targets/inventory_docker_machine/docker-machine index be5d00c5..aad9e5fe 100644 --- a/tests/integration/targets/inventory_docker_machine/docker-machine +++ b/tests/integration/targets/inventory_docker_machine/docker-machine @@ -1,6 +1,10 @@ #!/usr/bin/env bash # Mock Docker Machine wrapper for testing purposes +# 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 + [ "$MOCK_ERROR_IN" == "$1" ] && echo >&2 "Mock Docker Machine error" && exit 1 case $1 in env) diff --git a/tests/integration/targets/inventory_docker_machine/inventory_1.docker_machine.yml b/tests/integration/targets/inventory_docker_machine/inventory_1.docker_machine.yml index caf34787..f8fc6b0c 100644 --- a/tests/integration/targets/inventory_docker_machine/inventory_1.docker_machine.yml +++ b/tests/integration/targets/inventory_docker_machine/inventory_1.docker_machine.yml @@ -1 +1,6 @@ +--- +# 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 + plugin: community.docker.docker_machine diff --git a/tests/integration/targets/inventory_docker_machine/inventory_2.docker_machine.yml b/tests/integration/targets/inventory_docker_machine/inventory_2.docker_machine.yml index 00efaec9..817c5578 100644 --- a/tests/integration/targets/inventory_docker_machine/inventory_2.docker_machine.yml +++ b/tests/integration/targets/inventory_docker_machine/inventory_2.docker_machine.yml @@ -1,2 +1,7 @@ +--- +# 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 + plugin: community.docker.docker_machine daemon_env: require diff --git a/tests/integration/targets/inventory_docker_machine/inventory_3.docker_machine.yml b/tests/integration/targets/inventory_docker_machine/inventory_3.docker_machine.yml index 0fe42019..95a6e827 100644 --- a/tests/integration/targets/inventory_docker_machine/inventory_3.docker_machine.yml +++ b/tests/integration/targets/inventory_docker_machine/inventory_3.docker_machine.yml @@ -1,2 +1,7 @@ +--- +# 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 + plugin: community.docker.docker_machine daemon_env: optional diff --git a/tests/integration/targets/inventory_docker_machine/meta/main.yml b/tests/integration/targets/inventory_docker_machine/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/inventory_docker_machine/meta/main.yml +++ b/tests/integration/targets/inventory_docker_machine/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/inventory_docker_machine/playbooks/pre-setup.yml b/tests/integration/targets/inventory_docker_machine/playbooks/pre-setup.yml index 9f526fb4..b24c3818 100644 --- a/tests/integration/targets/inventory_docker_machine/playbooks/pre-setup.yml +++ b/tests/integration/targets/inventory_docker_machine/playbooks/pre-setup.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: 127.0.0.1 connection: local tasks: diff --git a/tests/integration/targets/inventory_docker_machine/playbooks/setup.yml b/tests/integration/targets/inventory_docker_machine/playbooks/setup.yml index 78042b62..02d9ad4a 100644 --- a/tests/integration/targets/inventory_docker_machine/playbooks/setup.yml +++ b/tests/integration/targets/inventory_docker_machine/playbooks/setup.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: 127.0.0.1 connection: local tasks: diff --git a/tests/integration/targets/inventory_docker_machine/playbooks/teardown.yml b/tests/integration/targets/inventory_docker_machine/playbooks/teardown.yml index b272c094..8fb6fbdf 100644 --- a/tests/integration/targets/inventory_docker_machine/playbooks/teardown.yml +++ b/tests/integration/targets/inventory_docker_machine/playbooks/teardown.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: 127.0.0.1 connection: local tasks: diff --git a/tests/integration/targets/inventory_docker_machine/playbooks/test_inventory_1.yml b/tests/integration/targets/inventory_docker_machine/playbooks/test_inventory_1.yml index d75c69b2..a4098eb3 100644 --- a/tests/integration/targets/inventory_docker_machine/playbooks/test_inventory_1.yml +++ b/tests/integration/targets/inventory_docker_machine/playbooks/test_inventory_1.yml @@ -1,3 +1,8 @@ +--- +# 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 + - hosts: 127.0.0.1 gather_facts: no tasks: diff --git a/tests/integration/targets/inventory_docker_machine/runme.sh b/tests/integration/targets/inventory_docker_machine/runme.sh index 074e64fc..b39a08c4 100755 --- a/tests/integration/targets/inventory_docker_machine/runme.sh +++ b/tests/integration/targets/inventory_docker_machine/runme.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# 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 SCRIPT_DIR=$(dirname "$0") diff --git a/tests/integration/targets/inventory_docker_machine/teardown.docker_machine.yml b/tests/integration/targets/inventory_docker_machine/teardown.docker_machine.yml index 046f4782..d1ce95ce 100644 --- a/tests/integration/targets/inventory_docker_machine/teardown.docker_machine.yml +++ b/tests/integration/targets/inventory_docker_machine/teardown.docker_machine.yml @@ -1,3 +1,8 @@ +--- +# 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 + plugin: community.docker.docker_machine daemon_env: skip running_required: false diff --git a/tests/integration/targets/inventory_docker_swarm/aliases b/tests/integration/targets/inventory_docker_swarm/aliases index f225f586..e0f02170 100644 --- a/tests/integration/targets/inventory_docker_swarm/aliases +++ b/tests/integration/targets/inventory_docker_swarm/aliases @@ -1,3 +1,7 @@ +# 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 + shippable/posix/group2 destructive needs/root diff --git a/tests/integration/targets/inventory_docker_swarm/inventory_1.docker_swarm.yml b/tests/integration/targets/inventory_docker_swarm/inventory_1.docker_swarm.yml index 03e11820..4371f6c1 100644 --- a/tests/integration/targets/inventory_docker_swarm/inventory_1.docker_swarm.yml +++ b/tests/integration/targets/inventory_docker_swarm/inventory_1.docker_swarm.yml @@ -1,2 +1,7 @@ +--- +# 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 + plugin: community.docker.docker_swarm docker_host: unix://var/run/docker.sock diff --git a/tests/integration/targets/inventory_docker_swarm/inventory_2.docker_swarm.yml b/tests/integration/targets/inventory_docker_swarm/inventory_2.docker_swarm.yml index 03d3c554..35fe21bf 100644 --- a/tests/integration/targets/inventory_docker_swarm/inventory_2.docker_swarm.yml +++ b/tests/integration/targets/inventory_docker_swarm/inventory_2.docker_swarm.yml @@ -1,3 +1,8 @@ +--- +# 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 + plugin: community.docker.docker_swarm docker_host: unix://var/run/docker.sock verbose_output: false diff --git a/tests/integration/targets/inventory_docker_swarm/meta/main.yml b/tests/integration/targets/inventory_docker_swarm/meta/main.yml index 07da8c6d..5769ff1c 100644 --- a/tests/integration/targets/inventory_docker_swarm/meta/main.yml +++ b/tests/integration/targets/inventory_docker_swarm/meta/main.yml @@ -1,3 +1,7 @@ --- +# 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 + dependencies: - setup_docker diff --git a/tests/integration/targets/inventory_docker_swarm/playbooks/swarm_cleanup.yml b/tests/integration/targets/inventory_docker_swarm/playbooks/swarm_cleanup.yml index 9cf87159..da9be518 100644 --- a/tests/integration/targets/inventory_docker_swarm/playbooks/swarm_cleanup.yml +++ b/tests/integration/targets/inventory_docker_swarm/playbooks/swarm_cleanup.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: 127.0.0.1 connection: local gather_facts: yes diff --git a/tests/integration/targets/inventory_docker_swarm/playbooks/swarm_setup.yml b/tests/integration/targets/inventory_docker_swarm/playbooks/swarm_setup.yml index 6fe0f874..98bd59f0 100644 --- a/tests/integration/targets/inventory_docker_swarm/playbooks/swarm_setup.yml +++ b/tests/integration/targets/inventory_docker_swarm/playbooks/swarm_setup.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: 127.0.0.1 connection: local vars: diff --git a/tests/integration/targets/inventory_docker_swarm/playbooks/test_inventory_1.yml b/tests/integration/targets/inventory_docker_swarm/playbooks/test_inventory_1.yml index 600a89b1..69592bc3 100644 --- a/tests/integration/targets/inventory_docker_swarm/playbooks/test_inventory_1.yml +++ b/tests/integration/targets/inventory_docker_swarm/playbooks/test_inventory_1.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: 127.0.0.1 connection: local # otherwise Ansible will complain that it cannot connect via ssh to 127.0.0.1:22 gather_facts: no diff --git a/tests/integration/targets/inventory_docker_swarm/playbooks/test_inventory_2.yml b/tests/integration/targets/inventory_docker_swarm/playbooks/test_inventory_2.yml index b2a794d3..f9b69c86 100644 --- a/tests/integration/targets/inventory_docker_swarm/playbooks/test_inventory_2.yml +++ b/tests/integration/targets/inventory_docker_swarm/playbooks/test_inventory_2.yml @@ -1,4 +1,8 @@ --- +# 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 + - hosts: 127.0.0.1 connection: local # otherwise Ansible will complain that it cannot connect via ssh to 127.0.0.1:22 gather_facts: no diff --git a/tests/integration/targets/inventory_docker_swarm/runme.sh b/tests/integration/targets/inventory_docker_swarm/runme.sh index b93d386a..746b8592 100755 --- a/tests/integration/targets/inventory_docker_swarm/runme.sh +++ b/tests/integration/targets/inventory_docker_swarm/runme.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# 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 [[ -n "$DEBUG" || -n "$ANSIBLE_DEBUG" ]] && set -x diff --git a/tests/integration/targets/setup_docker/aliases b/tests/integration/targets/setup_docker/aliases index 65e83152..0a430dff 100644 --- a/tests/integration/targets/setup_docker/aliases +++ b/tests/integration/targets/setup_docker/aliases @@ -1 +1,5 @@ +# 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 + needs/target/setup_epel diff --git a/tests/integration/targets/setup_docker/defaults/main.yml b/tests/integration/targets/setup_docker/defaults/main.yml index 661a309e..c120b5a3 100644 --- a/tests/integration/targets/setup_docker/defaults/main.yml +++ b/tests/integration/targets/setup_docker/defaults/main.yml @@ -1,4 +1,8 @@ --- +# 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 + docker_cli_version: '0.0' docker_api_version: '0.0' docker_py_version: '0.0' diff --git a/tests/integration/targets/setup_docker/handlers/main.yml b/tests/integration/targets/setup_docker/handlers/main.yml index a389f91d..96ca226c 100644 --- a/tests/integration/targets/setup_docker/handlers/main.yml +++ b/tests/integration/targets/setup_docker/handlers/main.yml @@ -1,3 +1,8 @@ +--- +# 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: Remove pip packages pip: state: present diff --git a/tests/integration/targets/setup_docker/meta/main.yml b/tests/integration/targets/setup_docker/meta/main.yml index 2be15776..d4a5c7d0 100644 --- a/tests/integration/targets/setup_docker/meta/main.yml +++ b/tests/integration/targets/setup_docker/meta/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + dependencies: - setup_remote_constraints - setup_pkg_mgr diff --git a/tests/integration/targets/setup_docker/tasks/Alpine.yml b/tests/integration/targets/setup_docker/tasks/Alpine.yml index cdd7894c..b3044b88 100644 --- a/tests/integration/targets/setup_docker/tasks/Alpine.yml +++ b/tests/integration/targets/setup_docker/tasks/Alpine.yml @@ -1,4 +1,8 @@ --- +# 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: Install docker apk: name: docker diff --git a/tests/integration/targets/setup_docker/tasks/Archlinux.yml b/tests/integration/targets/setup_docker/tasks/Archlinux.yml index 40331145..9015b088 100644 --- a/tests/integration/targets/setup_docker/tasks/Archlinux.yml +++ b/tests/integration/targets/setup_docker/tasks/Archlinux.yml @@ -1,4 +1,8 @@ --- +# 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: Install docker community.general.pacman: name: docker diff --git a/tests/integration/targets/setup_docker/tasks/Debian.yml b/tests/integration/targets/setup_docker/tasks/Debian.yml index c368bc12..808a6e74 100644 --- a/tests/integration/targets/setup_docker/tasks/Debian.yml +++ b/tests/integration/targets/setup_docker/tasks/Debian.yml @@ -1,4 +1,8 @@ --- +# 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: Get OS version shell: uname -r register: os_version diff --git a/tests/integration/targets/setup_docker/tasks/Fedora.yml b/tests/integration/targets/setup_docker/tasks/Fedora.yml index 62440f75..e13ae086 100644 --- a/tests/integration/targets/setup_docker/tasks/Fedora.yml +++ b/tests/integration/targets/setup_docker/tasks/Fedora.yml @@ -1,4 +1,8 @@ --- +# 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: Import GPG key rpm_key: key: https://download.docker.com/linux/fedora/gpg diff --git a/tests/integration/targets/setup_docker/tasks/RedHat-7.yml b/tests/integration/targets/setup_docker/tasks/RedHat-7.yml index ec492042..87728ec6 100644 --- a/tests/integration/targets/setup_docker/tasks/RedHat-7.yml +++ b/tests/integration/targets/setup_docker/tasks/RedHat-7.yml @@ -1,4 +1,8 @@ --- +# 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 + # The RHEL extras repository must be enabled to provide the container-selinux package. # See: https://docs.docker.com/engine/installation/linux/docker-ee/rhel/#install-using-the-repository diff --git a/tests/integration/targets/setup_docker/tasks/RedHat-8.yml b/tests/integration/targets/setup_docker/tasks/RedHat-8.yml index a7c7d586..1e259d97 100644 --- a/tests/integration/targets/setup_docker/tasks/RedHat-8.yml +++ b/tests/integration/targets/setup_docker/tasks/RedHat-8.yml @@ -1,4 +1,8 @@ --- +# 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 + # The RHEL extras repository must be enabled to provide the container-selinux package. # See: https://docs.docker.com/engine/installation/linux/docker-ee/rhel/#install-using-the-repository diff --git a/tests/integration/targets/setup_docker/tasks/RedHat-9.yml b/tests/integration/targets/setup_docker/tasks/RedHat-9.yml index a7c7d586..1e259d97 100644 --- a/tests/integration/targets/setup_docker/tasks/RedHat-9.yml +++ b/tests/integration/targets/setup_docker/tasks/RedHat-9.yml @@ -1,4 +1,8 @@ --- +# 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 + # The RHEL extras repository must be enabled to provide the container-selinux package. # See: https://docs.docker.com/engine/installation/linux/docker-ee/rhel/#install-using-the-repository diff --git a/tests/integration/targets/setup_docker/tasks/Suse.yml b/tests/integration/targets/setup_docker/tasks/Suse.yml index 52cdc1ba..945b728d 100644 --- a/tests/integration/targets/setup_docker/tasks/Suse.yml +++ b/tests/integration/targets/setup_docker/tasks/Suse.yml @@ -1,4 +1,8 @@ --- +# 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: Install docker 17 community.general.zypper: name: "{{ docker_packages if needs_docker_daemon else docker_cli_packages }}" diff --git a/tests/integration/targets/setup_docker/tasks/main.yml b/tests/integration/targets/setup_docker/tasks/main.yml index b4eaa4d7..bdccfe51 100644 --- a/tests/integration/targets/setup_docker/tasks/main.yml +++ b/tests/integration/targets/setup_docker/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/setup_docker/vars/Debian.yml b/tests/integration/targets/setup_docker/vars/Debian.yml index 66f3ac9f..78f7555d 100644 --- a/tests/integration/targets/setup_docker/vars/Debian.yml +++ b/tests/integration/targets/setup_docker/vars/Debian.yml @@ -1,4 +1,8 @@ --- +# 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 + docker_prereq_packages: - apt-transport-https - ca-certificates diff --git a/tests/integration/targets/setup_docker/vars/Fedora.yml b/tests/integration/targets/setup_docker/vars/Fedora.yml index ed97d539..f55df21f 100644 --- a/tests/integration/targets/setup_docker/vars/Fedora.yml +++ b/tests/integration/targets/setup_docker/vars/Fedora.yml @@ -1 +1,4 @@ --- +# 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 diff --git a/tests/integration/targets/setup_docker/vars/RedHat-7.yml b/tests/integration/targets/setup_docker/vars/RedHat-7.yml index 100a878d..b1e28987 100644 --- a/tests/integration/targets/setup_docker/vars/RedHat-7.yml +++ b/tests/integration/targets/setup_docker/vars/RedHat-7.yml @@ -1,4 +1,8 @@ --- +# 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 + docker_prereq_packages: - yum-utils - device-mapper-persistent-data diff --git a/tests/integration/targets/setup_docker/vars/RedHat-8.yml b/tests/integration/targets/setup_docker/vars/RedHat-8.yml index 7a3792ca..7609400a 100644 --- a/tests/integration/targets/setup_docker/vars/RedHat-8.yml +++ b/tests/integration/targets/setup_docker/vars/RedHat-8.yml @@ -1,4 +1,8 @@ --- +# 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 + docker_prereq_packages: - yum-utils - device-mapper-persistent-data diff --git a/tests/integration/targets/setup_docker/vars/RedHat-9.yml b/tests/integration/targets/setup_docker/vars/RedHat-9.yml index 06bd248a..04fcae72 100644 --- a/tests/integration/targets/setup_docker/vars/RedHat-9.yml +++ b/tests/integration/targets/setup_docker/vars/RedHat-9.yml @@ -1,4 +1,8 @@ --- +# 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 + docker_prereq_packages: - yum-utils - device-mapper-persistent-data diff --git a/tests/integration/targets/setup_docker/vars/Suse.yml b/tests/integration/targets/setup_docker/vars/Suse.yml index 1974462a..ab71ef5d 100644 --- a/tests/integration/targets/setup_docker/vars/Suse.yml +++ b/tests/integration/targets/setup_docker/vars/Suse.yml @@ -1,4 +1,8 @@ --- +# 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 + docker_packages: - docker>=17 diff --git a/tests/integration/targets/setup_docker/vars/Ubuntu-14.yml b/tests/integration/targets/setup_docker/vars/Ubuntu-14.yml index 84130934..d7c82455 100644 --- a/tests/integration/targets/setup_docker/vars/Ubuntu-14.yml +++ b/tests/integration/targets/setup_docker/vars/Ubuntu-14.yml @@ -1,4 +1,8 @@ --- +# 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 + docker_pip_extra_packages: # Installing requests >=2.12.0 on Ubuntu 14.04 breaks certificate validation. We restrict to an older version # to ensure out get_url tests work out fine. This is only an issue if pyOpenSSL is also installed. diff --git a/tests/integration/targets/setup_docker/vars/Ubuntu-22.yml b/tests/integration/targets/setup_docker/vars/Ubuntu-22.yml index 06f33c61..436eb2d6 100644 --- a/tests/integration/targets/setup_docker/vars/Ubuntu-22.yml +++ b/tests/integration/targets/setup_docker/vars/Ubuntu-22.yml @@ -1,4 +1,8 @@ --- +# 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 + docker_prereq_packages: - ca-certificates - curl diff --git a/tests/integration/targets/setup_docker/vars/default.yml b/tests/integration/targets/setup_docker/vars/default.yml index ed97d539..f55df21f 100644 --- a/tests/integration/targets/setup_docker/vars/default.yml +++ b/tests/integration/targets/setup_docker/vars/default.yml @@ -1 +1,4 @@ --- +# 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 diff --git a/tests/integration/targets/setup_docker/vars/main.env b/tests/integration/targets/setup_docker/vars/main.env index 0fd37705..52327147 100644 --- a/tests/integration/targets/setup_docker/vars/main.env +++ b/tests/integration/targets/setup_docker/vars/main.env @@ -1,2 +1,6 @@ +# 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 + # Docker images for runme.sh based tests DOCKER_TEST_IMAGE_PYTHON3=python:3-alpine diff --git a/tests/integration/targets/setup_docker/vars/main.yml b/tests/integration/targets/setup_docker/vars/main.yml index 8d4b74c5..e4eafc24 100644 --- a/tests/integration/targets/setup_docker/vars/main.yml +++ b/tests/integration/targets/setup_docker/vars/main.yml @@ -1,4 +1,8 @@ --- +# 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 + docker_test_image_digest_v1: e004c2cc521c95383aebb1fb5893719aa7a8eae2e7a71f316a4410784edb00a9 docker_test_image_digest_v2: ee44b399df993016003bf5466bd3eeb221305e9d0fa831606bc7902d149c775b docker_test_image_digest_base: quay.io/ansible/docker-test-containers diff --git a/tests/integration/targets/setup_docker_compose/defaults/main.yml b/tests/integration/targets/setup_docker_compose/defaults/main.yml index 0bccf796..f701c90e 100644 --- a/tests/integration/targets/setup_docker_compose/defaults/main.yml +++ b/tests/integration/targets/setup_docker_compose/defaults/main.yml @@ -1,4 +1,8 @@ --- +# 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 + skip_docker_compose: false docker_compose_packages: - docker-compose diff --git a/tests/integration/targets/setup_docker_compose/meta/main.yml b/tests/integration/targets/setup_docker_compose/meta/main.yml index f51ffea8..b6e985d7 100644 --- a/tests/integration/targets/setup_docker_compose/meta/main.yml +++ b/tests/integration/targets/setup_docker_compose/meta/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + dependencies: - setup_docker - setup_remote_constraints diff --git a/tests/integration/targets/setup_docker_compose/tasks/Alpine.yml b/tests/integration/targets/setup_docker_compose/tasks/Alpine.yml index f397b97a..85042fdf 100644 --- a/tests/integration/targets/setup_docker_compose/tasks/Alpine.yml +++ b/tests/integration/targets/setup_docker_compose/tasks/Alpine.yml @@ -1,4 +1,8 @@ --- +# 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: Install docker-compose as system package apk: name: "{{ docker_compose_packages }}" diff --git a/tests/integration/targets/setup_docker_compose/tasks/Archlinux.yml b/tests/integration/targets/setup_docker_compose/tasks/Archlinux.yml index 08464606..2e62ff05 100644 --- a/tests/integration/targets/setup_docker_compose/tasks/Archlinux.yml +++ b/tests/integration/targets/setup_docker_compose/tasks/Archlinux.yml @@ -1,4 +1,8 @@ --- +# 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: Install docker-compose as system package pacman: name: "{{ docker_compose_packages }}" diff --git a/tests/integration/targets/setup_docker_compose/tasks/Debian.yml b/tests/integration/targets/setup_docker_compose/tasks/Debian.yml index 675fe3b8..1729ccab 100644 --- a/tests/integration/targets/setup_docker_compose/tasks/Debian.yml +++ b/tests/integration/targets/setup_docker_compose/tasks/Debian.yml @@ -1,4 +1,8 @@ --- +# 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: Install docker-compose as system package apt: name: "{{ docker_compose_packages }}" diff --git a/tests/integration/targets/setup_docker_compose/tasks/Fedora.yml b/tests/integration/targets/setup_docker_compose/tasks/Fedora.yml index fbc26e80..a5f3d467 100644 --- a/tests/integration/targets/setup_docker_compose/tasks/Fedora.yml +++ b/tests/integration/targets/setup_docker_compose/tasks/Fedora.yml @@ -1,4 +1,8 @@ --- +# 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: Install docker-compose as system package dnf: name: "{{ docker_compose_packages }}" diff --git a/tests/integration/targets/setup_docker_compose/tasks/RedHat-7.yml b/tests/integration/targets/setup_docker_compose/tasks/RedHat-7.yml index b889b1fc..62f0e373 100644 --- a/tests/integration/targets/setup_docker_compose/tasks/RedHat-7.yml +++ b/tests/integration/targets/setup_docker_compose/tasks/RedHat-7.yml @@ -1,4 +1,8 @@ --- +# 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: Install docker-compose as system package yum: name: "{{ docker_compose_packages }}" diff --git a/tests/integration/targets/setup_docker_compose/tasks/RedHat-8.yml b/tests/integration/targets/setup_docker_compose/tasks/RedHat-8.yml index 5e5de6f5..54986845 100644 --- a/tests/integration/targets/setup_docker_compose/tasks/RedHat-8.yml +++ b/tests/integration/targets/setup_docker_compose/tasks/RedHat-8.yml @@ -1,4 +1,8 @@ --- +# 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: Install docker-compose as system package dnf: name: "{{ docker_compose_packages }}" diff --git a/tests/integration/targets/setup_docker_compose/tasks/RedHat-9.yml b/tests/integration/targets/setup_docker_compose/tasks/RedHat-9.yml index 5e5de6f5..54986845 100644 --- a/tests/integration/targets/setup_docker_compose/tasks/RedHat-9.yml +++ b/tests/integration/targets/setup_docker_compose/tasks/RedHat-9.yml @@ -1,4 +1,8 @@ --- +# 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: Install docker-compose as system package dnf: name: "{{ docker_compose_packages }}" diff --git a/tests/integration/targets/setup_docker_compose/tasks/Suse.yml b/tests/integration/targets/setup_docker_compose/tasks/Suse.yml index 41a702b5..bf8db5c0 100644 --- a/tests/integration/targets/setup_docker_compose/tasks/Suse.yml +++ b/tests/integration/targets/setup_docker_compose/tasks/Suse.yml @@ -1,4 +1,8 @@ --- +# 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: Install docker-compose as system package community.general.zypper: name: "{{ docker_compose_packages }}" diff --git a/tests/integration/targets/setup_docker_compose/tasks/main.yml b/tests/integration/targets/setup_docker_compose/tasks/main.yml index b352c42b..63088510 100644 --- a/tests/integration/targets/setup_docker_compose/tasks/main.yml +++ b/tests/integration/targets/setup_docker_compose/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/setup_docker_compose/tasks/setup.yml b/tests/integration/targets/setup_docker_compose/tasks/setup.yml index c82fb817..08c68a89 100644 --- a/tests/integration/targets/setup_docker_compose/tasks/setup.yml +++ b/tests/integration/targets/setup_docker_compose/tasks/setup.yml @@ -1,4 +1,8 @@ --- +# 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: Include distribution specific variables include_vars: "{{ lookup('first_found', params) }}" vars: diff --git a/tests/integration/targets/setup_docker_compose/vars/CentOS-8.yml b/tests/integration/targets/setup_docker_compose/vars/CentOS-8.yml index bc5b92ae..c5d18002 100644 --- a/tests/integration/targets/setup_docker_compose/vars/CentOS-8.yml +++ b/tests/integration/targets/setup_docker_compose/vars/CentOS-8.yml @@ -1,2 +1,6 @@ --- +# 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 + skip_docker_compose: true diff --git a/tests/integration/targets/setup_docker_compose/vars/RedHat-7.yml b/tests/integration/targets/setup_docker_compose/vars/RedHat-7.yml index bc5b92ae..c5d18002 100644 --- a/tests/integration/targets/setup_docker_compose/vars/RedHat-7.yml +++ b/tests/integration/targets/setup_docker_compose/vars/RedHat-7.yml @@ -1,2 +1,6 @@ --- +# 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 + skip_docker_compose: true diff --git a/tests/integration/targets/setup_docker_compose/vars/RedHat-8.yml b/tests/integration/targets/setup_docker_compose/vars/RedHat-8.yml index 37161ea1..7279eac1 100644 --- a/tests/integration/targets/setup_docker_compose/vars/RedHat-8.yml +++ b/tests/integration/targets/setup_docker_compose/vars/RedHat-8.yml @@ -1,2 +1,6 @@ --- +# 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 + docker_compose_packages: [] diff --git a/tests/integration/targets/setup_docker_compose/vars/RedHat-9.yml b/tests/integration/targets/setup_docker_compose/vars/RedHat-9.yml index 37161ea1..7279eac1 100644 --- a/tests/integration/targets/setup_docker_compose/vars/RedHat-9.yml +++ b/tests/integration/targets/setup_docker_compose/vars/RedHat-9.yml @@ -1,2 +1,6 @@ --- +# 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 + docker_compose_packages: [] diff --git a/tests/integration/targets/setup_docker_compose/vars/Suse-py2.yml b/tests/integration/targets/setup_docker_compose/vars/Suse-py2.yml index bc5b92ae..c5d18002 100644 --- a/tests/integration/targets/setup_docker_compose/vars/Suse-py2.yml +++ b/tests/integration/targets/setup_docker_compose/vars/Suse-py2.yml @@ -1,2 +1,6 @@ --- +# 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 + skip_docker_compose: true diff --git a/tests/integration/targets/setup_docker_compose/vars/Suse-py3.yml b/tests/integration/targets/setup_docker_compose/vars/Suse-py3.yml index 3d1010ca..46c58b25 100644 --- a/tests/integration/targets/setup_docker_compose/vars/Suse-py3.yml +++ b/tests/integration/targets/setup_docker_compose/vars/Suse-py3.yml @@ -1,2 +1,6 @@ --- +# 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 + docker_compose_pip_packages: [] diff --git a/tests/integration/targets/setup_docker_compose/vars/Ubuntu-16.yml b/tests/integration/targets/setup_docker_compose/vars/Ubuntu-16.yml index bc5b92ae..c5d18002 100644 --- a/tests/integration/targets/setup_docker_compose/vars/Ubuntu-16.yml +++ b/tests/integration/targets/setup_docker_compose/vars/Ubuntu-16.yml @@ -1,2 +1,6 @@ --- +# 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 + skip_docker_compose: true diff --git a/tests/integration/targets/setup_docker_compose/vars/Ubuntu-18.yml b/tests/integration/targets/setup_docker_compose/vars/Ubuntu-18.yml index bc5b92ae..c5d18002 100644 --- a/tests/integration/targets/setup_docker_compose/vars/Ubuntu-18.yml +++ b/tests/integration/targets/setup_docker_compose/vars/Ubuntu-18.yml @@ -1,2 +1,6 @@ --- +# 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 + skip_docker_compose: true diff --git a/tests/integration/targets/setup_docker_compose/vars/Ubuntu.yml b/tests/integration/targets/setup_docker_compose/vars/Ubuntu.yml index 3d1010ca..46c58b25 100644 --- a/tests/integration/targets/setup_docker_compose/vars/Ubuntu.yml +++ b/tests/integration/targets/setup_docker_compose/vars/Ubuntu.yml @@ -1,2 +1,6 @@ --- +# 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 + docker_compose_pip_packages: [] diff --git a/tests/integration/targets/setup_docker_compose/vars/default.yml b/tests/integration/targets/setup_docker_compose/vars/default.yml index ed97d539..f55df21f 100644 --- a/tests/integration/targets/setup_docker_compose/vars/default.yml +++ b/tests/integration/targets/setup_docker_compose/vars/default.yml @@ -1 +1,4 @@ --- +# 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 diff --git a/tests/integration/targets/setup_docker_registry/aliases b/tests/integration/targets/setup_docker_registry/aliases index 688c8884..357972ff 100644 --- a/tests/integration/targets/setup_docker_registry/aliases +++ b/tests/integration/targets/setup_docker_registry/aliases @@ -1,2 +1,6 @@ +# 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 + needs/target/setup_docker needs/target/setup_openssl diff --git a/tests/integration/targets/setup_docker_registry/files/nginx.conf b/tests/integration/targets/setup_docker_registry/files/nginx.conf index bfba5204..c3b0d334 100644 --- a/tests/integration/targets/setup_docker_registry/files/nginx.conf +++ b/tests/integration/targets/setup_docker_registry/files/nginx.conf @@ -1,3 +1,7 @@ +# 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 + events { worker_connections 16; } diff --git a/tests/integration/targets/setup_docker_registry/files/nginx.htpasswd b/tests/integration/targets/setup_docker_registry/files/nginx.htpasswd index 1291ae77..e3ff626f 100644 --- a/tests/integration/targets/setup_docker_registry/files/nginx.htpasswd +++ b/tests/integration/targets/setup_docker_registry/files/nginx.htpasswd @@ -1 +1,5 @@ +# 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 + testuser:{PLAIN}hunter2 diff --git a/tests/integration/targets/setup_docker_registry/handlers/cleanup.yml b/tests/integration/targets/setup_docker_registry/handlers/cleanup.yml index c4735b02..5c04ebc8 100644 --- a/tests/integration/targets/setup_docker_registry/handlers/cleanup.yml +++ b/tests/integration/targets/setup_docker_registry/handlers/cleanup.yml @@ -1,4 +1,8 @@ --- +# 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 }}" diff --git a/tests/integration/targets/setup_docker_registry/handlers/main.yml b/tests/integration/targets/setup_docker_registry/handlers/main.yml index 23030182..f1bdaace 100644 --- a/tests/integration/targets/setup_docker_registry/handlers/main.yml +++ b/tests/integration/targets/setup_docker_registry/handlers/main.yml @@ -1,3 +1,7 @@ --- +# 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: Remove test registry include_tasks: ../handlers/cleanup.yml diff --git a/tests/integration/targets/setup_docker_registry/meta/main.yml b/tests/integration/targets/setup_docker_registry/meta/main.yml index 2d30cdf9..4ab14ed1 100644 --- a/tests/integration/targets/setup_docker_registry/meta/main.yml +++ b/tests/integration/targets/setup_docker_registry/meta/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + dependencies: #- setup_docker -- done in setup.yml, to work around cleanup problems! - setup_openssl diff --git a/tests/integration/targets/setup_docker_registry/tasks/main.yml b/tests/integration/targets/setup_docker_registry/tasks/main.yml index 320df246..55c65477 100644 --- a/tests/integration/targets/setup_docker_registry/tasks/main.yml +++ b/tests/integration/targets/setup_docker_registry/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/setup_docker_registry/tasks/setup-frontend.yml b/tests/integration/targets/setup_docker_registry/tasks/setup-frontend.yml index 19c6a42e..d7b55e1c 100644 --- a/tests/integration/targets/setup_docker_registry/tasks/setup-frontend.yml +++ b/tests/integration/targets/setup_docker_registry/tasks/setup-frontend.yml @@ -1,4 +1,8 @@ --- +# 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 + # Set up first nginx frontend for registry - name: Start nginx frontend for registry docker_volume: diff --git a/tests/integration/targets/setup_docker_registry/tasks/setup.yml b/tests/integration/targets/setup_docker_registry/tasks/setup.yml index a13d1092..b3a8662e 100644 --- a/tests/integration/targets/setup_docker_registry/tasks/setup.yml +++ b/tests/integration/targets/setup_docker_registry/tasks/setup.yml @@ -1,4 +1,8 @@ --- +# 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: Register registry cleanup # This must be done **before** docker is set up (see next task), to ensure that the # registry is removed **before** docker itself is removed. This is necessary as the diff --git a/tests/integration/targets/setup_epel/tasks/main.yml b/tests/integration/targets/setup_epel/tasks/main.yml index 21627cfa..9aa12db8 100644 --- a/tests/integration/targets/setup_epel/tasks/main.yml +++ b/tests/integration/targets/setup_epel/tasks/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/setup_openssl/meta/main.yml b/tests/integration/targets/setup_openssl/meta/main.yml index 2be15776..d4a5c7d0 100644 --- a/tests/integration/targets/setup_openssl/meta/main.yml +++ b/tests/integration/targets/setup_openssl/meta/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + dependencies: - setup_remote_constraints - setup_pkg_mgr diff --git a/tests/integration/targets/setup_openssl/tasks/main.yml b/tests/integration/targets/setup_openssl/tasks/main.yml index 33030ab7..b84159b7 100644 --- a/tests/integration/targets/setup_openssl/tasks/main.yml +++ b/tests/integration/targets/setup_openssl/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/setup_openssl/vars/Alpine.yml b/tests/integration/targets/setup_openssl/vars/Alpine.yml index a8eca6b4..46007479 100644 --- a/tests/integration/targets/setup_openssl/vars/Alpine.yml +++ b/tests/integration/targets/setup_openssl/vars/Alpine.yml @@ -1,3 +1,7 @@ --- +# 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 + cryptography_package_name: py-cryptography cryptography_package_name_python3: py3-cryptography diff --git a/tests/integration/targets/setup_openssl/vars/Archlinux.yml b/tests/integration/targets/setup_openssl/vars/Archlinux.yml index 1593cfb6..9fa799eb 100644 --- a/tests/integration/targets/setup_openssl/vars/Archlinux.yml +++ b/tests/integration/targets/setup_openssl/vars/Archlinux.yml @@ -1,3 +1,7 @@ --- +# 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 + cryptography_package_name: python-cryptography cryptography_package_name_python3: python-cryptography diff --git a/tests/integration/targets/setup_openssl/vars/Debian.yml b/tests/integration/targets/setup_openssl/vars/Debian.yml index 5ddc85e4..4a3dc629 100644 --- a/tests/integration/targets/setup_openssl/vars/Debian.yml +++ b/tests/integration/targets/setup_openssl/vars/Debian.yml @@ -1,3 +1,7 @@ --- +# 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 + cryptography_package_name: python-cryptography cryptography_package_name_python3: python3-cryptography diff --git a/tests/integration/targets/setup_openssl/vars/FreeBSD.yml b/tests/integration/targets/setup_openssl/vars/FreeBSD.yml index cd7f36a7..0bf73ee8 100644 --- a/tests/integration/targets/setup_openssl/vars/FreeBSD.yml +++ b/tests/integration/targets/setup_openssl/vars/FreeBSD.yml @@ -1,3 +1,7 @@ --- +# 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 + cryptography_package_name: py27-cryptography cryptography_package_name_python3: py36-cryptography diff --git a/tests/integration/targets/setup_openssl/vars/RedHat.yml b/tests/integration/targets/setup_openssl/vars/RedHat.yml index 5ddc85e4..4a3dc629 100644 --- a/tests/integration/targets/setup_openssl/vars/RedHat.yml +++ b/tests/integration/targets/setup_openssl/vars/RedHat.yml @@ -1,3 +1,7 @@ --- +# 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 + cryptography_package_name: python-cryptography cryptography_package_name_python3: python3-cryptography diff --git a/tests/integration/targets/setup_openssl/vars/Suse.yml b/tests/integration/targets/setup_openssl/vars/Suse.yml index 5ddc85e4..4a3dc629 100644 --- a/tests/integration/targets/setup_openssl/vars/Suse.yml +++ b/tests/integration/targets/setup_openssl/vars/Suse.yml @@ -1,3 +1,7 @@ --- +# 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 + cryptography_package_name: python-cryptography cryptography_package_name_python3: python3-cryptography diff --git a/tests/integration/targets/setup_paramiko/meta/main.yml b/tests/integration/targets/setup_paramiko/meta/main.yml index d20e3de8..7172cbe2 100644 --- a/tests/integration/targets/setup_paramiko/meta/main.yml +++ b/tests/integration/targets/setup_paramiko/meta/main.yml @@ -1,4 +1,8 @@ --- +# 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 + dependencies: - setup_remote_constraints - setup_openssl # so cryptography is installed diff --git a/tests/integration/targets/setup_paramiko/tasks/main.yml b/tests/integration/targets/setup_paramiko/tasks/main.yml index 41af930f..fc29334c 100644 --- a/tests/integration/targets/setup_paramiko/tasks/main.yml +++ b/tests/integration/targets/setup_paramiko/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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: Install paramiko pip: name: "paramiko{% if cryptography_version.stdout is version('2.5.0', '<') %}<2.5.0{% endif %}" diff --git a/tests/integration/targets/setup_pkg_mgr/tasks/main.yml b/tests/integration/targets/setup_pkg_mgr/tasks/main.yml index 66735fed..a6f171bb 100644 --- a/tests/integration/targets/setup_pkg_mgr/tasks/main.yml +++ b/tests/integration/targets/setup_pkg_mgr/tasks/main.yml @@ -1,4 +1,8 @@ --- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/setup_remote_constraints/aliases b/tests/integration/targets/setup_remote_constraints/aliases index 1ad133ba..27ce6b08 100644 --- a/tests/integration/targets/setup_remote_constraints/aliases +++ b/tests/integration/targets/setup_remote_constraints/aliases @@ -1 +1,5 @@ +# 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 + needs/file/tests/utils/constraints.txt diff --git a/tests/integration/targets/setup_remote_constraints/meta/main.yml b/tests/integration/targets/setup_remote_constraints/meta/main.yml index 1810d4be..982de6eb 100644 --- a/tests/integration/targets/setup_remote_constraints/meta/main.yml +++ b/tests/integration/targets/setup_remote_constraints/meta/main.yml @@ -1,2 +1,7 @@ +--- +# 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 + dependencies: - setup_remote_tmp_dir diff --git a/tests/integration/targets/setup_remote_constraints/tasks/main.yml b/tests/integration/targets/setup_remote_constraints/tasks/main.yml index d4f8148c..7e913fc9 100644 --- a/tests/integration/targets/setup_remote_constraints/tasks/main.yml +++ b/tests/integration/targets/setup_remote_constraints/tasks/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/integration/targets/setup_remote_tmp_dir/handlers/main.yml b/tests/integration/targets/setup_remote_tmp_dir/handlers/main.yml index 229037c8..f1c55b04 100644 --- a/tests/integration/targets/setup_remote_tmp_dir/handlers/main.yml +++ b/tests/integration/targets/setup_remote_tmp_dir/handlers/main.yml @@ -1,3 +1,8 @@ +--- +# 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: delete temporary directory include_tasks: default-cleanup.yml diff --git a/tests/integration/targets/setup_remote_tmp_dir/tasks/default-cleanup.yml b/tests/integration/targets/setup_remote_tmp_dir/tasks/default-cleanup.yml index 39872d74..e19d903e 100644 --- a/tests/integration/targets/setup_remote_tmp_dir/tasks/default-cleanup.yml +++ b/tests/integration/targets/setup_remote_tmp_dir/tasks/default-cleanup.yml @@ -1,3 +1,8 @@ +--- +# 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: delete temporary directory file: path: "{{ remote_tmp_dir }}" diff --git a/tests/integration/targets/setup_remote_tmp_dir/tasks/default.yml b/tests/integration/targets/setup_remote_tmp_dir/tasks/default.yml index 1e0f51b8..c9d871c6 100644 --- a/tests/integration/targets/setup_remote_tmp_dir/tasks/default.yml +++ b/tests/integration/targets/setup_remote_tmp_dir/tasks/default.yml @@ -1,3 +1,8 @@ +--- +# 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: create temporary directory tempfile: state: directory diff --git a/tests/integration/targets/setup_remote_tmp_dir/tasks/main.yml b/tests/integration/targets/setup_remote_tmp_dir/tasks/main.yml index 93d786f0..babbdad0 100644 --- a/tests/integration/targets/setup_remote_tmp_dir/tasks/main.yml +++ b/tests/integration/targets/setup_remote_tmp_dir/tasks/main.yml @@ -1,3 +1,8 @@ +--- +# 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 + #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # diff --git a/tests/requirements.yml b/tests/requirements.yml index a242e324..fa0ba167 100644 --- a/tests/requirements.yml +++ b/tests/requirements.yml @@ -1,3 +1,8 @@ +--- +# 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 + integration_tests_dependencies: - ansible.posix - community.internal_test_tools diff --git a/tests/sanity/extra/extra-docs.py b/tests/sanity/extra/extra-docs.py index f2746e51..67310492 100755 --- a/tests/sanity/extra/extra-docs.py +++ b/tests/sanity/extra/extra-docs.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # Copyright (c) Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 """Check extra collection docs with antsibull-docs.""" from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/sanity/extra/licenses.json b/tests/sanity/extra/licenses.json new file mode 100644 index 00000000..50e47ca8 --- /dev/null +++ b/tests/sanity/extra/licenses.json @@ -0,0 +1,4 @@ +{ + "include_symlinks": false, + "output": "path-message" +} diff --git a/tests/sanity/extra/licenses.py b/tests/sanity/extra/licenses.py new file mode 100755 index 00000000..32d373a6 --- /dev/null +++ b/tests/sanity/extra/licenses.py @@ -0,0 +1,112 @@ +#!/usr/bin/env python +# Copyright (c) 2022, Felix Fontein +# 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 +"""Prevent files without a correct license identifier from being added to the source tree.""" +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + +import os +import glob +import sys + + +def format_license_list(licenses): + if not licenses: + return '(empty)' + return ', '.join(['"%s"' % license for license in licenses]) + + +def find_licenses(filename, relax=False): + spdx_license_identifiers = [] + other_license_identifiers = [] + has_copyright = False + with open(filename, 'r', encoding='utf-8') as f: + for line in f: + line = line.rstrip() + if 'Copyright ' in line: + has_copyright = True + if 'Copyright: ' in line: + print('%s: found copyright line with "Copyright:". Please remove the colon.' % (filename, )) + idx = line.find('SPDX-License-Identifier: ') + if idx >= 0: + spdx_license_identifiers.append(line[idx + len('SPDX-License-Identifier: '):]) + if 'GNU General Public License' in line: + if 'v3.0+' in line: + other_license_identifiers.append('GPL-3.0-or-later') + if 'version 3 or later' in line: + other_license_identifiers.append('GPL-3.0-or-later') + if 'Simplified BSD License' in line: + other_license_identifiers.append('BSD-2-Clause') + if 'Apache License 2.0' in line: + other_license_identifiers.append('Apache-2.0') + if 'PSF License' in line or 'Python-2.0' in line: + other_license_identifiers.append('PSF-2.0') + if 'MIT License' in line: + other_license_identifiers.append('MIT') + if len(set(spdx_license_identifiers)) < len(spdx_license_identifiers): + print('%s: found identical SPDX-License-Identifier values' % (filename, )) + if other_license_identifiers and set(other_license_identifiers) != set(spdx_license_identifiers): + print('%s: SPDX-License-Identifier yielded the license list %s, while manual guessing yielded the license list %s' % ( + filename, format_license_list(spdx_license_identifiers), format_license_list(other_license_identifiers))) + if not has_copyright and not relax: + print('%s: found no copyright notice' % (filename, )) + return sorted(spdx_license_identifiers) + + +def main(): + """Main entry point.""" + paths = sys.argv[1:] or sys.stdin.read().splitlines() + + # The following paths are allowed to have no license identifier + no_comments_allowed = [ + 'changelogs/fragments/*.yml', + 'tests/sanity/extra/*.json', + 'tests/sanity/ignore-2.*.txt', + 'LICENSES/*.txt', + 'COPYING', + ] + + # Files of this name are allowed to be empty + empty_allowed = [ + '.keep', + '__init__.py', + ] + + # These files are completely ignored + ignore_paths = [ + 'CHANGELOG.rst', + 'changelogs/changelog.yaml', + 'tests/sanity/extra/licenses.py', # The strings in find_licenses() confuse this code :-) + '.ansible-test-timeout.json', + ] + + no_comments_allowed = [fn for pattern in no_comments_allowed for fn in glob.glob(pattern)] + ignore_paths = [fn for pattern in ignore_paths for fn in glob.glob(pattern)] + + valid_licenses = [license_file[len('LICENSES/'):-len('.txt')] for license_file in glob.glob('LICENSES/*.txt')] + + for path in paths: + if path.startswith('./'): + path = path[2:] + if path in ignore_paths or path.startswith('tests/output/'): + continue + if os.path.basename(path) in empty_allowed: + if os.stat(path).st_size == 0: + continue + valid_licenses_for_path = valid_licenses + if path.startswith('plugins/') and not path.startswith(('plugins/modules/', 'plugins/module_utils/')): + valid_licenses_for_path = [license for license in valid_licenses if license == 'GPL-3.0-or-later'] + licenses = find_licenses(path, relax=path in no_comments_allowed) + if not licenses: + if path not in no_comments_allowed: + print('%s: must have at least one license' % (path, )) + else: + for license in licenses: + if license not in valid_licenses_for_path: + print('%s: found not allowed license "%s", must be one of %s' % ( + path, license, format_license_list(valid_licenses_for_path))) + + +if __name__ == '__main__': + main() diff --git a/tests/sanity/extra/no-unwanted-files.py b/tests/sanity/extra/no-unwanted-files.py index 49806f2e..51444ab7 100755 --- a/tests/sanity/extra/no-unwanted-files.py +++ b/tests/sanity/extra/no-unwanted-files.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # Copyright (c) Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 """Prevent unwanted files from being added to the source tree.""" from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/compat/builtins.py b/tests/unit/compat/builtins.py index f60ee678..b0cc6186 100644 --- a/tests/unit/compat/builtins.py +++ b/tests/unit/compat/builtins.py @@ -1,19 +1,6 @@ -# (c) 2014, Toshio Kuratomi -# -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# Copyright (c) 2014, Toshio Kuratomi +# 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 # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) diff --git a/tests/unit/compat/mock.py b/tests/unit/compat/mock.py index 0972cd2e..f8f565dc 100644 --- a/tests/unit/compat/mock.py +++ b/tests/unit/compat/mock.py @@ -1,19 +1,6 @@ -# (c) 2014, Toshio Kuratomi -# -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# Copyright (c) 2014, Toshio Kuratomi +# 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 # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) diff --git a/tests/unit/compat/unittest.py b/tests/unit/compat/unittest.py index 98f08ad6..1872e583 100644 --- a/tests/unit/compat/unittest.py +++ b/tests/unit/compat/unittest.py @@ -1,19 +1,6 @@ -# (c) 2014, Toshio Kuratomi -# -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# Copyright (c) 2014, Toshio Kuratomi +# 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 # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) diff --git a/tests/unit/plugins/connection/test_docker.py b/tests/unit/plugins/connection/test_docker.py index e811c824..682c3212 100644 --- a/tests/unit/plugins/connection/test_docker.py +++ b/tests/unit/plugins/connection/test_docker.py @@ -1,19 +1,6 @@ -# (c) 2020 Red Hat, Inc. -# -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# Copyright (c) 2020 Red Hat, Inc. +# 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 # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) diff --git a/tests/unit/plugins/inventory/test_docker_containers.py b/tests/unit/plugins/inventory/test_docker_containers.py index 46742dac..1c831b21 100644 --- a/tests/unit/plugins/inventory/test_docker_containers.py +++ b/tests/unit/plugins/inventory/test_docker_containers.py @@ -1,5 +1,6 @@ # Copyright (c), Felix Fontein , 2020 -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/__init__.py b/tests/unit/plugins/module_utils/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/unit/plugins/module_utils/_api/api/test_client.py b/tests/unit/plugins/module_utils/_api/api/test_client.py index ca4d7e50..c0a8ed39 100644 --- a/tests/unit/plugins/module_utils/_api/api/test_client.py +++ b/tests/unit/plugins/module_utils/_api/api/test_client.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/_api/fake_api.py b/tests/unit/plugins/module_utils/_api/fake_api.py index 5418cd50..b794ff3d 100644 --- a/tests/unit/plugins/module_utils/_api/fake_api.py +++ b/tests/unit/plugins/module_utils/_api/fake_api.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/_api/fake_stat.py b/tests/unit/plugins/module_utils/_api/fake_stat.py index 3b34eda9..97547328 100644 --- a/tests/unit/plugins/module_utils/_api/fake_stat.py +++ b/tests/unit/plugins/module_utils/_api/fake_stat.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/_api/test_auth.py b/tests/unit/plugins/module_utils/_api/test_auth.py index 767b85fb..b3b5a351 100644 --- a/tests/unit/plugins/module_utils/_api/test_auth.py +++ b/tests/unit/plugins/module_utils/_api/test_auth.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/_api/test_errors.py b/tests/unit/plugins/module_utils/_api/test_errors.py index 2c1846ad..96b5bd9e 100644 --- a/tests/unit/plugins/module_utils/_api/test_errors.py +++ b/tests/unit/plugins/module_utils/_api/test_errors.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/_api/transport/test_sshconn.py b/tests/unit/plugins/module_utils/_api/transport/test_sshconn.py index 62fb0e34..e9189f3e 100644 --- a/tests/unit/plugins/module_utils/_api/transport/test_sshconn.py +++ b/tests/unit/plugins/module_utils/_api/transport/test_sshconn.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/_api/transport/test_ssladapter.py b/tests/unit/plugins/module_utils/_api/transport/test_ssladapter.py index 763f37f8..428163e6 100644 --- a/tests/unit/plugins/module_utils/_api/transport/test_ssladapter.py +++ b/tests/unit/plugins/module_utils/_api/transport/test_ssladapter.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/_api/utils/test_build.py b/tests/unit/plugins/module_utils/_api/utils/test_build.py index 6b98f644..50eb703d 100644 --- a/tests/unit/plugins/module_utils/_api/utils/test_build.py +++ b/tests/unit/plugins/module_utils/_api/utils/test_build.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/_api/utils/test_config.py b/tests/unit/plugins/module_utils/_api/utils/test_config.py index c3ce49fe..9448f384 100644 --- a/tests/unit/plugins/module_utils/_api/utils/test_config.py +++ b/tests/unit/plugins/module_utils/_api/utils/test_config.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/_api/utils/test_decorators.py b/tests/unit/plugins/module_utils/_api/utils/test_decorators.py index fd166b9f..8ba1ec5f 100644 --- a/tests/unit/plugins/module_utils/_api/utils/test_decorators.py +++ b/tests/unit/plugins/module_utils/_api/utils/test_decorators.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/_api/utils/test_json_stream.py b/tests/unit/plugins/module_utils/_api/utils/test_json_stream.py index bd35d389..2d7f300f 100644 --- a/tests/unit/plugins/module_utils/_api/utils/test_json_stream.py +++ b/tests/unit/plugins/module_utils/_api/utils/test_json_stream.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/_api/utils/test_ports.py b/tests/unit/plugins/module_utils/_api/utils/test_ports.py index 67351da7..c1a08a12 100644 --- a/tests/unit/plugins/module_utils/_api/utils/test_ports.py +++ b/tests/unit/plugins/module_utils/_api/utils/test_ports.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/_api/utils/test_proxy.py b/tests/unit/plugins/module_utils/_api/utils/test_proxy.py index 10af5f61..0eb24270 100644 --- a/tests/unit/plugins/module_utils/_api/utils/test_proxy.py +++ b/tests/unit/plugins/module_utils/_api/utils/test_proxy.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/_api/utils/test_utils.py b/tests/unit/plugins/module_utils/_api/utils/test_utils.py index 2ca0589b..7679ba43 100644 --- a/tests/unit/plugins/module_utils/_api/utils/test_utils.py +++ b/tests/unit/plugins/module_utils/_api/utils/test_utils.py @@ -4,7 +4,8 @@ # # Copyright (c) 2016-2022 Docker, Inc. # -# It is licensed under the Apache 2.0 license (see Apache-2.0.txt in this collection) +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/module_utils/_api/utils/testdata/certs/ca.pem b/tests/unit/plugins/module_utils/_api/utils/testdata/certs/ca.pem index e69de29b..5c7093a3 100644 --- a/tests/unit/plugins/module_utils/_api/utils/testdata/certs/ca.pem +++ b/tests/unit/plugins/module_utils/_api/utils/testdata/certs/ca.pem @@ -0,0 +1,7 @@ +# This code is part of the Ansible collection community.docker, but is an independent component. +# This particular file, and this file only, is based on the Docker SDK for Python (https://github.com/docker/docker-py/) +# +# Copyright (c) 2016-2022 Docker, Inc. +# +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 diff --git a/tests/unit/plugins/module_utils/_api/utils/testdata/certs/cert.pem b/tests/unit/plugins/module_utils/_api/utils/testdata/certs/cert.pem index e69de29b..5c7093a3 100644 --- a/tests/unit/plugins/module_utils/_api/utils/testdata/certs/cert.pem +++ b/tests/unit/plugins/module_utils/_api/utils/testdata/certs/cert.pem @@ -0,0 +1,7 @@ +# This code is part of the Ansible collection community.docker, but is an independent component. +# This particular file, and this file only, is based on the Docker SDK for Python (https://github.com/docker/docker-py/) +# +# Copyright (c) 2016-2022 Docker, Inc. +# +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 diff --git a/tests/unit/plugins/module_utils/_api/utils/testdata/certs/key.pem b/tests/unit/plugins/module_utils/_api/utils/testdata/certs/key.pem index e69de29b..5c7093a3 100644 --- a/tests/unit/plugins/module_utils/_api/utils/testdata/certs/key.pem +++ b/tests/unit/plugins/module_utils/_api/utils/testdata/certs/key.pem @@ -0,0 +1,7 @@ +# This code is part of the Ansible collection community.docker, but is an independent component. +# This particular file, and this file only, is based on the Docker SDK for Python (https://github.com/docker/docker-py/) +# +# Copyright (c) 2016-2022 Docker, Inc. +# +# It is licensed under the Apache 2.0 license (see LICENSES/Apache-2.0.txt in this collection) +# SPDX-License-Identifier: Apache-2.0 diff --git a/tests/unit/plugins/module_utils/test_util.py b/tests/unit/plugins/module_utils/test_util.py index 1560dc3b..c7d36212 100644 --- a/tests/unit/plugins/module_utils/test_util.py +++ b/tests/unit/plugins/module_utils/test_util.py @@ -1,3 +1,7 @@ +# 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 + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/modules/__init__.py b/tests/unit/plugins/modules/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/unit/plugins/modules/conftest.py b/tests/unit/plugins/modules/conftest.py index 9d8c52e6..0ed3dd44 100644 --- a/tests/unit/plugins/modules/conftest.py +++ b/tests/unit/plugins/modules/conftest.py @@ -1,5 +1,6 @@ # Copyright (c) 2017 Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# 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 from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/plugins/modules/test_docker_network.py b/tests/unit/plugins/modules/test_docker_network.py index 4b36a52c..a937c6db 100644 --- a/tests/unit/plugins/modules/test_docker_network.py +++ b/tests/unit/plugins/modules/test_docker_network.py @@ -1,3 +1,7 @@ +# 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 + """Unit tests for docker_network.""" from __future__ import (absolute_import, division, print_function) diff --git a/tests/unit/plugins/modules/test_docker_swarm_service.py b/tests/unit/plugins/modules/test_docker_swarm_service.py index 1fae8daf..1cef623b 100644 --- a/tests/unit/plugins/modules/test_docker_swarm_service.py +++ b/tests/unit/plugins/modules/test_docker_swarm_service.py @@ -1,3 +1,7 @@ +# 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 + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/tests/unit/requirements.txt b/tests/unit/requirements.txt index 24d2b6b0..386c97e2 100644 --- a/tests/unit/requirements.txt +++ b/tests/unit/requirements.txt @@ -1,3 +1,7 @@ +# 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 + unittest2 ; python_version < '2.7' importlib ; python_version < '2.7' diff --git a/tests/utils/constraints.txt b/tests/utils/constraints.txt index cc1edab2..8d66367f 100644 --- a/tests/utils/constraints.txt +++ b/tests/utils/constraints.txt @@ -1,3 +1,7 @@ +# 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 + bcrypt < 3.2.0 ; python_version <= '3.6' certifi < 2022.5.18 ; python_version < '3.5' # certifi 2022.5.18 requires Python 3.5 or later cffi >= 1.14.2, != 1.14.3 # Yanked version which older versions of pip will still install diff --git a/tests/utils/shippable/cloud.sh b/tests/utils/shippable/cloud.sh index d76c3228..a2e6ebf2 100755 --- a/tests/utils/shippable/cloud.sh +++ b/tests/utils/shippable/cloud.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# 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 set -o pipefail -eux diff --git a/tests/utils/shippable/linux-community.sh b/tests/utils/shippable/linux-community.sh index e68bdf38..5adafa0c 100755 --- a/tests/utils/shippable/linux-community.sh +++ b/tests/utils/shippable/linux-community.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# 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 set -o pipefail -eux diff --git a/tests/utils/shippable/linux.sh b/tests/utils/shippable/linux.sh index 9cc2f966..ce3ac34d 100755 --- a/tests/utils/shippable/linux.sh +++ b/tests/utils/shippable/linux.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# 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 set -o pipefail -eux diff --git a/tests/utils/shippable/remote.sh b/tests/utils/shippable/remote.sh index bdd8ad56..41093942 100755 --- a/tests/utils/shippable/remote.sh +++ b/tests/utils/shippable/remote.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# 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 set -o pipefail -eux diff --git a/tests/utils/shippable/sanity.sh b/tests/utils/shippable/sanity.sh index 360b1c12..04b925bb 100755 --- a/tests/utils/shippable/sanity.sh +++ b/tests/utils/shippable/sanity.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# 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 set -o pipefail -eux diff --git a/tests/utils/shippable/shippable.sh b/tests/utils/shippable/shippable.sh index 1e5d5006..2ca96b88 100755 --- a/tests/utils/shippable/shippable.sh +++ b/tests/utils/shippable/shippable.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# 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 set -o pipefail -eux diff --git a/tests/utils/shippable/units.sh b/tests/utils/shippable/units.sh index f204dc87..37685cb0 100755 --- a/tests/utils/shippable/units.sh +++ b/tests/utils/shippable/units.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# 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 set -o pipefail -eux