mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-03-16 12:06:29 +00:00
* Add basic docker_compose tests. * Add more constraints for Py 2. * Try to install docker-compose from system packages. * Another try. * Some more tries. * One more. * Move task into block. * Clean up constraints file. * More adjustments. * TEMP: add debug output
47 lines
2.1 KiB
YAML
47 lines
2.1 KiB
YAML
---
|
|
- name: Include distribution specific variables
|
|
include_vars: "{{ lookup('first_found', params) }}"
|
|
vars:
|
|
params:
|
|
files:
|
|
- "{{ ansible_facts.distribution }}-{{ ansible_facts.distribution_major_version }}-py{{ ansible_python.version.major }}.yml"
|
|
- "{{ ansible_facts.os_family }}-{{ ansible_facts.distribution_major_version }}-py{{ ansible_python.version.major }}.yml"
|
|
- "{{ ansible_facts.distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
|
|
- "{{ ansible_facts.os_family }}-{{ ansible_facts.distribution_major_version }}.yml"
|
|
- "{{ ansible_facts.distribution }}-py{{ ansible_python.version.major }}.yml"
|
|
- "{{ ansible_facts.os_family }}-py{{ ansible_python.version.major }}.yml"
|
|
- "{{ ansible_facts.distribution }}.yml"
|
|
- "{{ ansible_facts.os_family }}.yml"
|
|
- default.yml
|
|
paths:
|
|
- "{{ role_path }}/vars"
|
|
|
|
- block:
|
|
- name: Include distribution specific tasks
|
|
include_tasks: "{{ lookup('first_found', params) }}"
|
|
vars:
|
|
params:
|
|
files:
|
|
- "{{ ansible_facts.distribution }}-{{ ansible_facts.distribution_major_version }}-py{{ ansible_python.version.major }}.yml"
|
|
- "{{ ansible_facts.os_family }}-{{ ansible_facts.distribution_major_version }}-py{{ ansible_python.version.major }}.yml"
|
|
- "{{ ansible_facts.distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
|
|
- "{{ ansible_facts.os_family }}-{{ ansible_facts.distribution_major_version }}.yml"
|
|
- "{{ ansible_facts.distribution }}-py{{ ansible_python.version.major }}.yml"
|
|
- "{{ ansible_facts.os_family }}-py{{ ansible_python.version.major }}.yml"
|
|
- "{{ ansible_facts.distribution }}.yml"
|
|
- "{{ ansible_facts.os_family }}.yml"
|
|
paths:
|
|
- "{{ role_path }}/tasks"
|
|
|
|
- name: Install docker-compose
|
|
pip:
|
|
state: present
|
|
name: "{{ docker_compose_pip_packages }}"
|
|
extra_args: "-c {{ remote_constraints }}"
|
|
|
|
- name: Declare docker-compose as existing
|
|
set_fact:
|
|
has_docker_compose: true
|
|
|
|
when: not skip_docker_compose
|