[FIX] ansible needs docker-compose python package

This commit is contained in:
Jannik Beyerstedt 2019-11-02 18:47:57 +01:00
parent 73d4c38499
commit c30237b545

View file

@ -53,7 +53,9 @@
cache_valid_time: 3600
# Install latest release of docker-compose (does not work for armhf/ arm64)
# Install latest release of docker-compose (using pip3)
# docker only provides pre-compiled binaries for x86_64, but not for armhf/ arm64!
# but ansible needs the python package anyway
- name: docker-compose - Discover if raspbian is used
set_fact:
dockercompose_use_pip: true
@ -81,7 +83,7 @@
path: /usr/local/bin/docker-compose
mode: 0755
when: dockercompose_use_pip == false
- name: docker-compose - Install using pip3
- name: docker-compose - Install python package
block:
- name: docker-compose - Install requirements
become: yes
@ -93,4 +95,3 @@
pip:
name: docker-compose
executable: pip3
when: dockercompose_use_pip == true