From 8bd1a6c108306136cc56dc7bfc209de6c6354d0b Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 18 Apr 2018 16:16:30 +0200 Subject: [PATCH] Fix the python-env role. Some new dependencies broke it. --- python-env/defaults/main.yml | 2 +- python-env/tasks/main.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/python-env/defaults/main.yml b/python-env/defaults/main.yml index ffafef78..ffcce4a6 100644 --- a/python-env/defaults/main.yml +++ b/python-env/defaults/main.yml @@ -1,6 +1,6 @@ --- py_env_install: False -py_env_pkgs_state: installed +py_env_pkgs_state: present py_env_site: False py_env_trusty_workaround: True py_env_get_pip_url: https://bootstrap.pypa.io/get-pip.py diff --git a/python-env/tasks/main.yml b/python-env/tasks/main.yml index 074cad3f..ad667cb8 100644 --- a/python-env/tasks/main.yml +++ b/python-env/tasks/main.yml @@ -25,14 +25,15 @@ - name: Fix the trusty pip installation shell: /usr/local/bin/python-pip-fixer - when: ( python_pip_fixer | changed ) + when: python_pip_fixer is changed - name: Install the python dev headers and other dev requirements apt: pkg={{ item }} state=present with_items: '{{ py_env_pip_dev_packages }}' - name: Install the latest six python package - pip: name=six state=latest + #pip: name=six state=latest + pip: name=six state=present - name: Install setuptools version 33.1.1 pip: name=setuptools version=33.1.1 state=present