use python2 docker-compose
This commit is contained in:
parent
c95457c4d4
commit
cefdcc91ff
@ -8,9 +8,6 @@ dockerengine_packages:
|
|||||||
# @end
|
# @end
|
||||||
dockerengine_packages_extra: []
|
dockerengine_packages_extra: []
|
||||||
|
|
||||||
dockerengine_packages_python:
|
|
||||||
- name: docker-compose
|
|
||||||
|
|
||||||
dockerengine_service: docker
|
dockerengine_service: docker
|
||||||
|
|
||||||
dockerengine_docker_group_enabled: False
|
dockerengine_docker_group_enabled: False
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
|
vars:
|
||||||
|
dockerengine_packages_extra:
|
||||||
|
- epel-release
|
||||||
|
- python-pip
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: xoxys.python3
|
|
||||||
- role: xoxys.docker_engine
|
- role: xoxys.docker_engine
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- src: https://gitea.rknet.org/ansible/xoxys.python3.git
|
|
||||||
name: xoxys.python3
|
|
||||||
scm: git
|
|
||||||
version: master
|
|
@ -6,19 +6,15 @@
|
|||||||
state: present
|
state: present
|
||||||
loop: "{{ dockerengine_packages_extra }}"
|
loop: "{{ dockerengine_packages_extra }}"
|
||||||
|
|
||||||
|
- name: Install python dependencies
|
||||||
|
pip:
|
||||||
|
name: "{{ item }}"
|
||||||
|
loop: "{{ __docker_ansible_deps }}"
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ dockerengine_packages + __docker_ansible_deps }}"
|
loop: "{{ dockerengine_packages }}"
|
||||||
|
|
||||||
- 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 }}"
|
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
__docker_ansible_deps:
|
__docker_ansible_deps:
|
||||||
- python-docker-py
|
- docker-compose~=1.23.0
|
||||||
|
- docker
|
||||||
|
Loading…
Reference in New Issue
Block a user