mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
pip -> ansible.builtin.pip
This commit is contained in:
parent
910f073a74
commit
c2b634a6d2
7 changed files with 11 additions and 11 deletions
|
@ -134,7 +134,7 @@
|
|||
fi
|
||||
|
||||
- name: Download Calibre-Web dependencies from 'requirements.txt' into python3 virtual environment {{ calibreweb_venv_path }}
|
||||
pip:
|
||||
ansible.builtin.pip:
|
||||
requirements: "{{ calibreweb_venv_path }}/requirements.txt"
|
||||
virtualenv: "{{ calibreweb_venv_path }}" # /usr/local/calibre-web-py3
|
||||
#virtualenv_site_packages: no
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
state: latest
|
||||
|
||||
- name: "pip install 3 packages into virtual environment: {{ jupyterhub_venv }} (~316 MB total, after 2 Ansible calls)"
|
||||
pip:
|
||||
ansible.builtin.pip:
|
||||
name:
|
||||
- pip
|
||||
- wheel
|
||||
|
@ -61,7 +61,7 @@
|
|||
# https://github.com/iiab/iiab/issues/3283
|
||||
|
||||
- name: Break up jupyterhub/jupyterlab pip installs into 2 parts (3 packages above + 4 packages here) due to mutual dependency deadlock on some OS's
|
||||
pip:
|
||||
ansible.builtin.pip:
|
||||
name:
|
||||
- jupyterlab
|
||||
- jupyterhub_firstuseauthenticator
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
when: is_debian_12 # Also covers is_raspbian_12
|
||||
|
||||
- name: Use pip to pin setuptools to 44 in {{ kalite_venv }} -- if Ubuntu 22.04 / Mint 21, Ubuntu 23.10, Debian 12 or RasPiOS 12
|
||||
pip:
|
||||
ansible.builtin.pip:
|
||||
name: setuptools==44
|
||||
virtualenv: "{{ kalite_venv }}" # /usr/local/kalite/venv
|
||||
virtualenv_site_packages: no
|
||||
|
@ -39,7 +39,7 @@
|
|||
when: is_ubuntu_2204 or is_ubuntu_2310 or is_debian_12 # Also covers is_linuxmint_21 and is_raspbian_12
|
||||
|
||||
- name: Use pip to install ka-lite-static to {{ kalite_venv }} -- if Ubuntu 22.04 / Mint 21, Ubuntu 23.10, Debian 12 or RasPiOS 12
|
||||
pip:
|
||||
ansible.builtin.pip:
|
||||
name: ka-lite-static
|
||||
version: "{{ kalite_version }}"
|
||||
virtualenv: "{{ kalite_venv }}"
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
# following line to roles/lokole/defaults/main.yml:
|
||||
# lokole_commit: <git_commit_id>
|
||||
- name: "OPTIONAL: pip install opwen_email_client (Lokole, git commit {{ lokole_commit }}) from GitHub to {{ lokole_venv }}, if lokole_commit is defined"
|
||||
pip:
|
||||
ansible.builtin.pip:
|
||||
name: "git+{{ lokole_repo }}@{{ lokole_commit }}#egg=opwen_email_client"
|
||||
virtualenv: "{{ lokole_venv }}"
|
||||
virtualenv_command: python3 -m venv "{{ lokole_venv }}"
|
||||
|
@ -43,7 +43,7 @@
|
|||
# the following line to roles/lokole/defaults/main.yml:
|
||||
# lokole_version: <git_version_number>
|
||||
- name: "OPTIONAL: pip install opwen_email_client (Lokole, version {{ lokole_version }}) from PyPI to {{ lokole_venv }}, if lokole_version is defined"
|
||||
pip:
|
||||
ansible.builtin.pip:
|
||||
name: opwen_email_client
|
||||
version: "{{ lokole_version }}"
|
||||
virtualenv: "{{ lokole_venv }}"
|
||||
|
@ -52,7 +52,7 @@
|
|||
when: lokole_version is defined
|
||||
|
||||
- name: "DEFAULT: pip install opwen_email_client (Lokole, latest available version) from PyPI to {{ lokole_venv }}, if above vars both UNdefined"
|
||||
pip:
|
||||
ansible.builtin.pip:
|
||||
name: opwen_email_client
|
||||
virtualenv: "{{ lokole_venv }}"
|
||||
virtualenv_command: python3 -m venv "{{ lokole_venv }}"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
state: present
|
||||
|
||||
- name: pip install 'passlib' into venv /usr/local/ansible -- for Ansible module 'htpasswd' in Ansible collection community.general -- used just below
|
||||
pip:
|
||||
ansible.builtin.pip:
|
||||
name: passlib
|
||||
virtualenv: /usr/local/ansible
|
||||
extra_args: "--upgrade --no-cache-dir --prefer-binary" # 2023-10-01: Lifesaver when recent wheels (e.g. piwheels.org) are inevitably not yet built! SEE #3560
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
state: present
|
||||
|
||||
- name: pip install 'PyMySQL' into venv /usr/local/ansible -- for Ansible modules {mysql_db, mysql_user} in Ansible collection community.mysql -- used in roles {mediawiki, nextcloud, wordpress, matomo, pbx}
|
||||
pip:
|
||||
ansible.builtin.pip:
|
||||
name: PyMySQL
|
||||
virtualenv: /usr/local/ansible
|
||||
extra_args: "--upgrade --no-cache-dir --prefer-binary" # 2023-10-01: Lifesaver when recent wheels (e.g. piwheels.org) are inevitably not yet built! SEE #3560
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
state: present
|
||||
|
||||
- name: pip install 'psycopg' (NEW Psycopg 3) into venv /usr/local/ansible -- for Ansible modules {postgresql_db, postgresql_user} in Ansible collection community.postgresql -- used in moodle/tasks/install.yml
|
||||
pip:
|
||||
ansible.builtin.pip:
|
||||
name: psycopg
|
||||
virtualenv: /usr/local/ansible
|
||||
extra_args: "--upgrade --no-cache-dir --prefer-binary" # 2023-10-01: Lifesaver when recent wheels (e.g. piwheels.org) are inevitably not yet built! SEE #3560
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue