use discovered python version to set pip version
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Robert Kaussow 2020-05-07 22:06:50 +02:00
parent 6a7ea4e072
commit 8a959f59ee
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
---
- block:
- block:
- name: Install dependencies
package:
name: "{{ item }}"
@ -15,7 +15,7 @@
- name: Install python packages
pip:
name: "{{ item.name }}"
executable: "{{ item.exec | default('/usr/bin/pip3') }}"
executable: "{{ item.exec | default('/usr/bin/pip' + ansible_python.version.major) }}"
state: present
loop: "{{ dockerengine_packages_python }}"
loop_control: