install compose to a virtualenv to prevent os dependency mess up
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2020-06-23 09:48:27 +02:00
parent c274a3ce47
commit eae84d80ec
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 13 additions and 0 deletions

View File

@ -9,8 +9,17 @@
- name: Install python dependencies
pip:
name: "{{ item }}"
virtualenv: /opt/python2/ansible-deps
loop: "{{ __docker_ansible_deps }}"
- name: Add docker-compose wrapper
template:
src: bin/docker-compose.j2
dest: /bin/docker-compose
owner: root
group: root
mode: 0755
- name: Install packages
package:
name: "{{ item }}"

View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
set -eo pipefail
exec /opt/python2/ansible-deps/bin/docker-compose "$@"