set the lang before running the pip tasks.

This commit is contained in:
Andrea Dell'Amico 2021-02-25 17:57:54 +01:00
parent 1cf0c29d49
commit 8977c31489
1 changed files with 18 additions and 6 deletions

View File

@ -25,30 +25,42 @@
state: latest
when: not pip3_path_executable.stat.exists
- name: Install a list of binary pip3 packages in wheels format
- name: Install a list of binary pip3 packages in wheels format using /usr/local/bin/pip{{ py3_env_major_version }}
pip: executable=/usr/local/bin/pip{{ py3_env_major_version }} name={{ py3_env_wheel_pip_pkgs }} state={{ py3_pip_pkgs_state }}
environment:
LANG: en_US.UTF-8
when: pip3_path_executable.stat.exists
- name: Install a list of binary pip3 packages in wheels format
- name: Install a list of binary pip3 packages in wheels format using /usr/bin/pip{{ py3_env_major_version }}
pip: executable=/usr/bin/pip{{ py3_env_major_version }} name={{ py3_env_wheel_pip_pkgs }} state={{ py3_pip_pkgs_state }}
environment:
LANG: en_US.UTF-8
when: not pip3_path_executable.stat.exists
- name: Install a list of versioned pip3 packages on EL
- name: Install a list of versioned pip3 packages on EL using /usr/local/bin/pip{{ py3_env_major_version }}
pip: executable=/usr/local/bin/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 ([]) }}'
environment:
LANG: en_US.UTF-8
when: pip3_path_executable.stat.exists
- name: Install a list of versioned pip3 packages on EL
- name: Install a list of versioned pip3 packages on EL using /usr/bin/pip{{ py3_env_major_version }}
pip: executable=/usr/bin/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 ([]) }}'
environment:
LANG: en_US.UTF-8
when: not pip3_path_executable.stat.exists
- name: Install a list of pip3 packages on EL
- name: Install a list of pip3 packages on EL using /usr/local/bin/pip{{ py3_env_major_version }}
pip: executable=/usr/local/bin/pip{{ py3_env_major_version }} name={{ py3_env_pip_pkgs }} state={{ py3_pip_pkgs_state }}
environment:
LANG: en_US.UTF-8
when: pip3_path_executable.stat.exists
- name: Install a list of pip3 packages on EL
- name: Install a list of pip3 packages on EL using /usr/bin/pip{{ py3_env_major_version }
pip: executable=/usr/bin/pip{{ py3_env_major_version }} name={{ py3_env_pip_pkgs }} state={{ py3_pip_pkgs_state }}
environment:
LANG: en_US.UTF-8
when: not pip3_path_executable.stat.exists
when: py3_env_install