use python2 docker-compose
This commit is contained in:
parent
c95457c4d4
commit
cefdcc91ff
@ -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
|
||||
|
@ -1,6 +1,10 @@
|
||||
---
|
||||
- name: Converge
|
||||
hosts: all
|
||||
vars:
|
||||
dockerengine_packages_extra:
|
||||
- epel-release
|
||||
- python-pip
|
||||
|
||||
roles:
|
||||
- role: xoxys.python3
|
||||
- role: xoxys.docker_engine
|
||||
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
- src: https://gitea.rknet.org/ansible/xoxys.python3.git
|
||||
name: xoxys.python3
|
||||
scm: git
|
||||
version: master
|
@ -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
|
||||
|
@ -1,3 +1,4 @@
|
||||
---
|
||||
__docker_ansible_deps:
|
||||
- python-docker-py
|
||||
- docker-compose~=1.23.0
|
||||
- docker
|
||||
|
Loading…
Reference in New Issue
Block a user