From 7e23bdb3e4ae68194c4e71a8d0f9ecab36b2a566 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 11 Dec 2020 17:43:35 +0100 Subject: [PATCH] Add some tags. --- tasks/py3_deb.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tasks/py3_deb.yml b/tasks/py3_deb.yml index 4697128..0881c0e 100644 --- a/tasks/py3_deb.yml +++ b/tasks/py3_deb.yml @@ -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' ]