From 58381f58f1f45c9ade101975324861e8f0ef598b Mon Sep 17 00:00:00 2001 From: Albin Vass Date: Mon, 25 May 2020 20:35:56 +0200 Subject: [PATCH] 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 --- roles/ensure-pip/tasks/main.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/ensure-pip/tasks/main.yaml b/roles/ensure-pip/tasks/main.yaml index 6dfe8125a..e4393643a 100644 --- a/roles/ensure-pip/tasks/main.yaml +++ b/roles/ensure-pip/tasks/main.yaml @@ -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