From d42f5c5b3c97ce06e3d08bd59b5de38e2b0dfb96 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 6 Jun 2019 19:10:55 +0200 Subject: [PATCH] Give the option to force a run of the pip fixer script, on Ubuntu Trusty. --- library/roles/ubuntu-python-setup/defaults/main.yml | 1 + library/roles/ubuntu-python-setup/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/library/roles/ubuntu-python-setup/defaults/main.yml b/library/roles/ubuntu-python-setup/defaults/main.yml index e55c6902..29565a57 100644 --- a/library/roles/ubuntu-python-setup/defaults/main.yml +++ b/library/roles/ubuntu-python-setup/defaults/main.yml @@ -1,6 +1,7 @@ --- python_pkgs_state: present python_get_pip_url: https://bootstrap.pypa.io/get-pip.py +python_force_pip_fix: False python_basic_pkgs: - python-pip diff --git a/library/roles/ubuntu-python-setup/tasks/main.yml b/library/roles/ubuntu-python-setup/tasks/main.yml index fd1fdb49..8aa3d735 100644 --- a/library/roles/ubuntu-python-setup/tasks/main.yml +++ b/library/roles/ubuntu-python-setup/tasks/main.yml @@ -9,7 +9,7 @@ - name: Fix the trusty pip installation shell: /usr/local/bin/python-pip-fixer - when: python_pip_fixer is changed + when: python_pip_fixer is changed or python_force_pip_fix - name: Install the python dev headers and other dev requirements apt: pkg={{ python_pip_dev_packages }} state={{ python_pkgs_state }} update_cache=yes cache_valid_time=1800