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

@ -8,6 +8,15 @@
- py_env_install - py_env_install
- is_not_trusty - is_not_trusty
tags: [ "python", "py_env" ] 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: - block:
- name: Install python deb packages - name: Install python deb packages
@ -29,3 +38,4 @@
when: when:
- py_env_install - py_env_install
tags: [ "python", "py_env", "py_env_pkgs" ] tags: [ "python", "py_env", "py_env_pkgs" ]