ensure-pip: update include to include_tasks

include is being deprecated and import_tasks is supported
since 2.4 so update bindep to use that instead.

Change-Id: I21670d7d687b81ac745a74cf43cbe747eefde08c
This commit is contained in:
Albin Vass 2020-05-25 20:35:56 +02:00
parent 8df1e02752
commit 58381f58f1

View File

@ -27,7 +27,7 @@
failed_when: false
- name: Install pip from packages
include: "{{ zj_distro_os }}"
include_tasks: "{{ zj_distro_os }}"
with_first_found:
- "{{ ansible_distribution_release }}.yaml"
- "{{ ansible_distribution }}.yaml"
@ -40,10 +40,10 @@
loop_var: zj_distro_os
- name: Include workarounds
include: workarounds.yaml
import_tasks: workarounds.yaml
- name: Install pip from source
include: source.yaml
include_tasks: source.yaml
when:
- ensure_pip_from_upstream
- pip_preinstalled.rc != 0