Add some tags.

This commit is contained in:
Andrea Dell'Amico 2020-12-11 17:43:35 +01:00
parent cda08d2a4a
commit 7e23bdb3e4
1 changed files with 7 additions and 2 deletions

View File

@ -20,14 +20,16 @@
shell: python{{ py3_env_version }} -m ensurepip && pip{{ py3_env_version }} install --upgrade pip setuptools wheel
when: ansible_distribution_version is version_compare('18.04', '<')
- name: Install a list of versioned pip3 packages on Ubuntu older than Trusty
- name: Install a list of versioned pip3 packages on Ubuntu older than Bionic
pip: executable=pip{{ py3_env_version }} name={{ item.pkg }} version={{ item.version }}
with_items: '{{ py3_env_versioned_pip_pkgs | default ([]) }}'
when: ansible_distribution_version is version_compare('18.04', '<')
tags: [ "python", "py3_env", "py3_env_pkgs", 'python3', 'py3_pkgs_versioned' ]
- name: Install a list of pip3 packages on Ubuntu older than Trusty
- name: Install a list of pip3 packages on Ubuntu older than Bionic
pip: executable=pip{{ py3_env_version }} name={{ py3_env_pip_pkgs }} state={{ py3_pip_pkgs_state }}
when: ansible_distribution_version is version_compare('18.04', '<')
tags: [ "python", "py3_env", "py3_env_pkgs", 'python3', 'py3_pkgs_latest' ]
- name: Ensure that we have the latest pip, setuptools and wheel versions
pip:
@ -37,15 +39,18 @@
- name: Install a list of binary pip3 packages in wheels format
pip: executable=pip{{ py3_env_major_version }} name={{ py3_env_wheel_pip_pkgs }} state={{ py3_pip_pkgs_state }}
tags: [ "python", "py3_env", "py3_env_pkgs", 'python3', 'py3_pkgs_wheels' ]
- name: Install a list of versioned pip3 packages on Ubuntu Bionic or newer
pip: executable=pip{{ py3_env_major_version }} name={{ item.pkg }} version={{ item.version }}
with_items: '{{ py3_env_versioned_pip_pkgs | default ([]) }}'
when: ansible_distribution_version is version_compare('18.04', '>=')
tags: [ "python", "py3_env", "py3_env_pkgs", 'python3', 'py3_pkgs_versioned' ]
- name: Install a list of pip3 packages on Ubuntu Bionic or newer
pip: executable=pip{{ py3_env_major_version }} name={{ py3_env_pip_pkgs }} state={{ py3_pip_pkgs_state }}
when: ansible_distribution_version is version_compare('18.04', '>=')
tags: [ "python", "py3_env", "py3_env_pkgs", 'python3', 'py3_pkgs_latest' ]
when: py3_env_install
tags: [ "python", "py3_env", "py3_env_pkgs", 'python3' ]