diff --git a/python-env/tasks/main.yml b/python-env/tasks/main.yml index b1f1f22f..bed3eff1 100644 --- a/python-env/tasks/main.yml +++ b/python-env/tasks/main.yml @@ -8,6 +8,15 @@ - py_env_install - 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 @@ -29,3 +38,4 @@ when: - py_env_install tags: [ "python", "py_env", "py_env_pkgs" ] +