use python2 docker-compose

This commit is contained in:
Robert Kaussow 2020-06-14 19:28:34 +02:00
parent c95457c4d4
commit cefdcc91ff
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
5 changed files with 15 additions and 22 deletions

View File

@ -3,14 +3,11 @@ dockerengine_packages:
- docker
# @var dockerengine_packages_extra:description: >
# The role requires epel repository and pip to work .You can use
# The role requires epel repository and pip to work. You can use
# `dockerengine_packages_extra` to install these dependencys.
# @end
dockerengine_packages_extra: []
dockerengine_packages_python:
- name: docker-compose
dockerengine_service: docker
dockerengine_docker_group_enabled: False

View File

@ -1,6 +1,10 @@
---
- name: Converge
hosts: all
vars:
dockerengine_packages_extra:
- epel-release
- python-pip
roles:
- role: xoxys.python3
- role: xoxys.docker_engine

View File

@ -1,5 +0,0 @@
---
- src: https://gitea.rknet.org/ansible/xoxys.python3.git
name: xoxys.python3
scm: git
version: master

View File

@ -1,24 +1,20 @@
---
- block:
- block:
- name: Install dependencies
package:
name: "{{ item }}"
state: present
loop: "{{ dockerengine_packages_extra }}"
- name: Install python dependencies
pip:
name: "{{ item }}"
loop: "{{ __docker_ansible_deps }}"
- name: Install packages
package:
name: "{{ item }}"
state: present
loop: "{{ dockerengine_packages + __docker_ansible_deps }}"
- name: Install python packages
pip:
name: "{{ item.name }}"
executable: "{{ item.exec | default('/usr/bin/pip3') }}"
state: present
loop: "{{ dockerengine_packages_python }}"
loop_control:
label: "{{ item.name }}"
loop: "{{ dockerengine_packages }}"
become: True
become_user: root

View File

@ -1,3 +1,4 @@
---
__docker_ansible_deps:
- python-docker-py
- docker-compose~=1.23.0
- docker