Debian Codegraph @

ansible_collections/community/docker/tests/integration/targets/docker_stack/tasks/main.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 ####################################################################
7 # WARNING: These are designed specifically for Ansible tests #
8 # and should not be used as examples of how to write Ansible roles #
9 ####################################################################
10
11 - ansible.builtin.include_tasks: test_stack.yml
12 when: docker_api_version is version('1.25', '>=')
13
14 - ansible.builtin.fail: msg="Too old docker / docker-py version to run docker_stack tests!"
15 when: not(docker_api_version is version('1.25', '>=')) and (ansible_facts.distribution != 'CentOS' or ansible_facts.distribution_major_version|int > 6)