---
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/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: Compose is available from Alpine 3.15 on
  set_fact:
    docker_has_compose: "{{ ansible_facts.distribution_version is version('3.15', '>=') }}"

- name: Install Docker compose CLI plugin
  apk:
    name: docker-cli-compose
  when: docker_has_compose
