cleanup the python-env role.
This commit is contained in:
parent
d42f5c5b3c
commit
be33a29601
|
@ -1,8 +1,7 @@
|
||||||
---
|
---
|
||||||
- block:
|
- block:
|
||||||
- name: Install python pip
|
- name: Install python pip
|
||||||
apt: name={{ item }} state={{ py_env_pkgs_state }} update_cache=yes cache_valid_time=600
|
apt: name={{ py_env_basic_pkgs | default([]) }} state={{ py_env_pkgs_state }} update_cache=yes cache_valid_time=600
|
||||||
with_items: '{{ py_env_basic_pkgs | default([]) }}'
|
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- py_env_install
|
- py_env_install
|
||||||
|
@ -11,8 +10,7 @@
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Remove python deb packages
|
- name: Remove python deb packages
|
||||||
apt: name={{ item }} state=absent
|
apt: name={{ py_env_dpkg_toremove | default([]) }} state=absent
|
||||||
with_items: '{{ py_env_dpkg_toremove | default([]) }}'
|
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- py_env_install
|
- py_env_install
|
||||||
|
@ -20,16 +18,13 @@
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Install python deb packages
|
- name: Install python deb packages
|
||||||
apt: name={{ item }} state={{ py_env_pkgs_state }} update_cache=yes cache_valid_time=600
|
apt: name={{ py_env_dpkg | default([]) }} state={{ py_env_pkgs_state }} update_cache=yes cache_valid_time=600
|
||||||
with_items: '{{ py_env_dpkg | default([]) }}'
|
|
||||||
|
|
||||||
- name: Install deb packages needed to compile the pip modules
|
- name: Install deb packages needed to compile the pip modules
|
||||||
apt: name={{ item }} state={{ py_env_pkgs_state }} update_cache=yes cache_valid_time=600
|
apt: name={{ py_pip_deps | default([]) }} state={{ py_env_pkgs_state }} update_cache=yes cache_valid_time=600
|
||||||
with_items: '{{ py_pip_deps | default([]) }}'
|
|
||||||
|
|
||||||
- name: Install a list of pip packages
|
- name: Install a list of pip packages
|
||||||
pip: name={{ item }} state=latest
|
pip: name={{ py_env_pip_pkgs | default ([]) }} state=latest
|
||||||
with_items: '{{ py_env_pip_pkgs | default ([]) }}'
|
|
||||||
|
|
||||||
- name: Install a list of versioned pip packages
|
- name: Install a list of versioned pip packages
|
||||||
pip: name={{ item.pkg }} version={{ item.version }}
|
pip: name={{ item.pkg }} version={{ item.version }}
|
||||||
|
|
Loading…
Reference in New Issue