diff --git a/tests/integration/targets/docker_config/tasks/main.yml b/tests/integration/targets/docker_config/tasks/main.yml index 71064365..ea3fbde5 100644 --- a/tests/integration/targets/docker_config/tasks/main.yml +++ b/tests/integration/targets/docker_config/tasks/main.yml @@ -1,4 +1,9 @@ --- +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - include_tasks: test_docker_config.yml when: docker_py_version is version('2.6.0', '>=') and docker_api_version is version('1.30', '>=') diff --git a/tests/integration/targets/docker_container/tasks/main.yml b/tests/integration/targets/docker_container/tasks/main.yml index 02d9847a..338e0b1c 100644 --- a/tests/integration/targets/docker_container/tasks/main.yml +++ b/tests/integration/targets/docker_container/tasks/main.yml @@ -1,4 +1,9 @@ --- +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + # Create random name prefix (for containers, networks, ...) - name: Create random container name prefix set_fact: diff --git a/tests/integration/targets/docker_container_info/tasks/main.yml b/tests/integration/targets/docker_container_info/tasks/main.yml index 4e7118fc..5e0b1c74 100644 --- a/tests/integration/targets/docker_container_info/tasks/main.yml +++ b/tests/integration/targets/docker_container_info/tasks/main.yml @@ -1,4 +1,9 @@ --- +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - block: - name: Create random container name set_fact: diff --git a/tests/integration/targets/docker_host_info/tasks/main.yml b/tests/integration/targets/docker_host_info/tasks/main.yml index 6779b5fc..1f0e10a5 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 @@ +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - include_tasks: test_host_info.yml when: docker_py_version is version('1.10.0', '>=') and docker_api_version is version('1.21', '>=') diff --git a/tests/integration/targets/docker_image/tasks/main.yml b/tests/integration/targets/docker_image/tasks/main.yml index 3b4f9357..2be493eb 100644 --- a/tests/integration/targets/docker_image/tasks/main.yml +++ b/tests/integration/targets/docker_image/tasks/main.yml @@ -1,3 +1,8 @@ +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - when: ansible_facts.distribution ~ ansible_facts.distribution_major_version not in ['CentOS6', 'RedHat6'] include_tasks: file: test.yml diff --git a/tests/integration/targets/docker_image_info/tasks/main.yml b/tests/integration/targets/docker_image_info/tasks/main.yml index 10634736..1c5a60d5 100644 --- a/tests/integration/targets/docker_image_info/tasks/main.yml +++ b/tests/integration/targets/docker_image_info/tasks/main.yml @@ -1,4 +1,9 @@ --- +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - block: - name: Make sure image is not there docker_image: diff --git a/tests/integration/targets/docker_login/tasks/main.yml b/tests/integration/targets/docker_login/tasks/main.yml index 3b4f9357..2be493eb 100644 --- a/tests/integration/targets/docker_login/tasks/main.yml +++ b/tests/integration/targets/docker_login/tasks/main.yml @@ -1,3 +1,8 @@ +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - when: ansible_facts.distribution ~ ansible_facts.distribution_major_version not in ['CentOS6', 'RedHat6'] include_tasks: file: test.yml diff --git a/tests/integration/targets/docker_network/tasks/main.yml b/tests/integration/targets/docker_network/tasks/main.yml index b2726a8a..d5fcdb91 100644 --- a/tests/integration/targets/docker_network/tasks/main.yml +++ b/tests/integration/targets/docker_network/tasks/main.yml @@ -1,4 +1,9 @@ --- +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - name: Create random name prefix set_fact: name_prefix: "{{ 'ansible-test-%0x' % ((2**32) | random) }}" diff --git a/tests/integration/targets/docker_network_info/tasks/main.yml b/tests/integration/targets/docker_network_info/tasks/main.yml index 5498270e..70edcf6c 100644 --- a/tests/integration/targets/docker_network_info/tasks/main.yml +++ b/tests/integration/targets/docker_network_info/tasks/main.yml @@ -1,4 +1,9 @@ --- +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - block: - name: Create random network name set_fact: diff --git a/tests/integration/targets/docker_node/tasks/main.yml b/tests/integration/targets/docker_node/tasks/main.yml index 482f7668..a91efc59 100644 --- a/tests/integration/targets/docker_node/tasks/main.yml +++ b/tests/integration/targets/docker_node/tasks/main.yml @@ -1,4 +1,9 @@ --- +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + # Run the tests - block: - include_tasks: test_node.yml diff --git a/tests/integration/targets/docker_node_info/tasks/main.yml b/tests/integration/targets/docker_node_info/tasks/main.yml index 4d1e6a4c..7855f7e2 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 @@ +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - include_tasks: test_node_info.yml # Maximum of 1.24 (docker API version for docker_node_info) and 1.25 (docker API version for docker_swarm) is 1.25 when: docker_py_version is version('2.4.0', '>=') and docker_api_version is version('1.25', '>=') diff --git a/tests/integration/targets/docker_prune/tasks/main.yml b/tests/integration/targets/docker_prune/tasks/main.yml index 3d2f3839..a1f09b7d 100644 --- a/tests/integration/targets/docker_prune/tasks/main.yml +++ b/tests/integration/targets/docker_prune/tasks/main.yml @@ -1,4 +1,9 @@ --- +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - name: Create random names set_fact: cname: "{{ 'ansible-container-%0x' % ((2**32) | random) }}" diff --git a/tests/integration/targets/docker_secret/tasks/main.yml b/tests/integration/targets/docker_secret/tasks/main.yml index fe38bccd..68d3df8d 100644 --- a/tests/integration/targets/docker_secret/tasks/main.yml +++ b/tests/integration/targets/docker_secret/tasks/main.yml @@ -1,3 +1,8 @@ +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - include_tasks: test_secrets.yml when: docker_py_version is version('2.1.0', '>=') and docker_api_version is version('1.25', '>=') diff --git a/tests/integration/targets/docker_stack/tasks/main.yml b/tests/integration/targets/docker_stack/tasks/main.yml index 9f3e16e6..5ed63f3e 100644 --- a/tests/integration/targets/docker_stack/tasks/main.yml +++ b/tests/integration/targets/docker_stack/tasks/main.yml @@ -1,3 +1,8 @@ +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - include_tasks: test_stack.yml when: docker_api_version is version('1.25', '>=') diff --git a/tests/integration/targets/docker_stack_info/tasks/main.yml b/tests/integration/targets/docker_stack_info/tasks/main.yml index 3ae1ff5b..b499f80d 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 @@ +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - include_tasks: test_stack_info.yml when: docker_api_version is version('1.25', '>=') 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 7995d2a2..0990e90b 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 @@ +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - include_tasks: test_stack_task_info.yml when: docker_api_version is version('1.25', '>=') diff --git a/tests/integration/targets/docker_swarm/tasks/main.yml b/tests/integration/targets/docker_swarm/tasks/main.yml index 743d63ab..597b71a8 100644 --- a/tests/integration/targets/docker_swarm/tasks/main.yml +++ b/tests/integration/targets/docker_swarm/tasks/main.yml @@ -1,3 +1,8 @@ +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - name: Run Docker Swarm tests when: - docker_py_version is version('1.10.0', '>=') diff --git a/tests/integration/targets/docker_swarm_info/tasks/main.yml b/tests/integration/targets/docker_swarm_info/tasks/main.yml index 83e9d5eb..1421701f 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 @@ +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - include_tasks: test_swarm_info.yml # Maximum of 1.24 (docker API version for docker_swarm_info) and 1.25 (docker API version for docker_swarm) is 1.25 when: docker_py_version is version('1.10.0', '>=') and docker_api_version is version('1.25', '>=') diff --git a/tests/integration/targets/docker_swarm_service/tasks/main.yml b/tests/integration/targets/docker_swarm_service/tasks/main.yml index 86e9fcea..4cb69597 100644 --- a/tests/integration/targets/docker_swarm_service/tasks/main.yml +++ b/tests/integration/targets/docker_swarm_service/tasks/main.yml @@ -1,4 +1,9 @@ --- +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + # Create random name prefix (for containers, networks, ...) - name: Create random name prefix 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 295634d6..8350e901 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,9 @@ --- +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - include_tasks: test_docker_swarm_service_info.yml when: docker_py_version is version('2.0.0', '>=') and docker_api_version is version('1.24', '>=') diff --git a/tests/integration/targets/docker_volume/tasks/main.yml b/tests/integration/targets/docker_volume/tasks/main.yml index 43b417d4..04baaadb 100644 --- a/tests/integration/targets/docker_volume/tasks/main.yml +++ b/tests/integration/targets/docker_volume/tasks/main.yml @@ -1,4 +1,9 @@ --- +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - name: Create random name prefix set_fact: name_prefix: "{{ 'ansible-test-%0x' % ((2**32) | random) }}" diff --git a/tests/integration/targets/docker_volume_info/tasks/main.yml b/tests/integration/targets/docker_volume_info/tasks/main.yml index 539b8afd..30f71e32 100644 --- a/tests/integration/targets/docker_volume_info/tasks/main.yml +++ b/tests/integration/targets/docker_volume_info/tasks/main.yml @@ -1,4 +1,9 @@ --- +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - block: - name: Create random volume name set_fact: diff --git a/tests/integration/targets/setup_docker/tasks/main.yml b/tests/integration/targets/setup_docker/tasks/main.yml index 80c3f662..a9c8a7c5 100644 --- a/tests/integration/targets/setup_docker/tasks/main.yml +++ b/tests/integration/targets/setup_docker/tasks/main.yml @@ -1,4 +1,9 @@ --- +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - name: Setup Docker when: ansible_facts.distribution ~ ansible_facts.distribution_major_version not in ['CentOS6', 'RedHat6'] block: diff --git a/tests/integration/targets/setup_docker_registry/tasks/main.yml b/tests/integration/targets/setup_docker_registry/tasks/main.yml index fd935f0e..40178274 100644 --- a/tests/integration/targets/setup_docker_registry/tasks/main.yml +++ b/tests/integration/targets/setup_docker_registry/tasks/main.yml @@ -1,3 +1,8 @@ +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + - when: ansible_facts.distribution ~ ansible_facts.distribution_major_version not in ['CentOS6', 'RedHat6'] include_tasks: file: setup.yml