New variable for the mandatory python packages
This commit is contained in:
parent
7e23bdb3e4
commit
d9b6fef4e0
|
@ -7,6 +7,8 @@ py3_env_pkgs_state: present
|
|||
py3_pip_pkgs_state: present
|
||||
py3_env_site: False
|
||||
|
||||
py3_env_dpkg: []
|
||||
py3_el_env_pkg: []
|
||||
py3_env_wheel_pip_pkgs: []
|
||||
py3_env_pip_pkgs: []
|
||||
py3_env_versioned_pip_pkgs: []
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
tags: [ "python", "py3_env", "py3_env_pkgs", 'python3' ]
|
||||
|
||||
- block:
|
||||
- name: Install the python3 deb packages
|
||||
- name: Install the python3 mandatory deb packages
|
||||
apt: name={{ py3_env_mandatory_dpkg }} state={{ py3_env_pkgs_state }} update_cache=yes cache_valid_time=600
|
||||
|
||||
- name: Install the python3 additional deb packages
|
||||
apt: name={{ py3_env_dpkg }} state={{ py3_env_pkgs_state }} update_cache=yes cache_valid_time=600
|
||||
|
||||
- name: Install python3-pip deb packages
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
---
|
||||
- block:
|
||||
- name: Install the python3 EL packages
|
||||
- name: Install the python3 EL mandatory packages
|
||||
yum: name={{ py3_el_env_mandatory_pkg }} state={{ py3_env_pkgs_state }}
|
||||
|
||||
- name: Install the python3 EL additional packages
|
||||
yum: name={{ py3_el_env_pkg }} state={{ py3_env_pkgs_state }}
|
||||
|
||||
- name: Ensure that we have the latest pip, setuptools and wheel versions
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
py3_ppa: 'ppa:deadsnakes/ppa'
|
||||
|
||||
py3_env_dpkg:
|
||||
py3_env_mandatory_dpkg:
|
||||
- 'python{{ py3_env_version }}'
|
||||
- 'python{{ py3_env_version }}-venv'
|
||||
- 'python{{ py3_env_version }}-dev'
|
||||
|
@ -12,7 +12,7 @@ py3_env_pip_default_pkgs:
|
|||
- 'wheel'
|
||||
|
||||
py3_el_env_version: '{{ py3_env_major_version }}{{py3_env_minor_version }}'
|
||||
py3_el_env_pkg:
|
||||
py3_el_env_mandatory_pkg:
|
||||
- 'python{{ py3_env_major_version }}'
|
||||
- 'python{{ py3_env_major_version }}-pip'
|
||||
- 'python{{ py3_env_major_version }}-setuptools'
|
||||
|
|
Loading…
Reference in New Issue