Fix a conditional so that on Trusty pip is not installed as a deb package.

This commit is contained in:
Andrea Dell'Amico 2018-10-02 18:54:54 +02:00
parent 2cea5f12c3
commit 19541312ff
1 changed files with 10 additions and 0 deletions

View File

@ -9,6 +9,15 @@
- is_not_trusty
tags: [ "python", "py_env" ]
- block:
- name: Remove python deb packages
apt: name={{ item }} state=absent
with_items: '{{ py_env_dpkg_toremove | default([]) }}'
when:
- py_env_install
tags: [ "python", "py_env", "py_env_pkgs" ]
- block:
- name: Install python deb packages
apt: name={{ item }} state={{ py_env_pkgs_state }} update_cache=yes cache_valid_time=600
@ -29,3 +38,4 @@
when:
- py_env_install
tags: [ "python", "py_env", "py_env_pkgs" ]