Support extra arguments.

This commit is contained in:
Andrea Dell'Amico 2021-01-21 13:27:24 +01:00
parent d9b6fef4e0
commit ea18ac7e84
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@
when: ansible_distribution_version is version_compare('18.04', '<')
- 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 }}
pip: executable=pip{{ py3_env_version }} name={{ item.pkg }} version={{ item.version }} extra_args={{ item.extra_args | default('') }}
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' ]
@ -45,7 +45,7 @@
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 }}
pip: executable=pip{{ py3_env_major_version }} name={{ item.pkg }} version={{ item.version }} extra_args={{ item.extra_args | default('') }}
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' ]

View File

@ -16,7 +16,7 @@
pip: executable=pip{{ py3_env_major_version }} name={{ py3_env_wheel_pip_pkgs }} state={{ py3_pip_pkgs_state }}
- name: Install a list of versioned pip3 packages on EL
pip: executable=pip{{ py3_env_major_version }} name={{ item.pkg }} version={{ item.version }}
pip: executable=pip{{ py3_env_major_version }} name={{ item.pkg }} version={{ item.version }} extra_args={{ item.extra_args | default('') }}
with_items: '{{ py3_env_versioned_pip_pkgs | default ([]) }}'
- name: Install a list of pip3 packages on EL