From 6ab3d5d5fb7c6400ce03f533489621ae955ab51c Mon Sep 17 00:00:00 2001 From: Dawa Ometto Date: Mon, 9 Feb 2026 12:02:26 +0100 Subject: [PATCH] role ibridges: use uv to speed up installation --- docs/roles/fact_regular_users.md | 2 +- playbooks/roles/ibridges/tasks/main.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/roles/fact_regular_users.md b/docs/roles/fact_regular_users.md index fc5f00b1..318af2d7 100644 --- a/docs/roles/fact_regular_users.md +++ b/docs/roles/fact_regular_users.md @@ -8,7 +8,7 @@ Defines the following facts: - `fact_regular_users` -- list of dicts containing user info about regular users. - `fact_co_groups` -- dict with group names from the CO as keys, and lists of usernames in those groups as values. - - `fact_src_ansible_venv` -- string path to the python environment currently being used by Ansible. Can be used to install additional `pip` dependencies for Ansible modules into the correct environment. Empty string if Ansible is not using a virtual environment (but instead the global system python environment). +- `fact_src_ansible_venv` -- string path to the python environment currently being used by Ansible. Can be used to install additional `pip` dependencies for Ansible modules into the correct environment. Empty string if Ansible is not using a virtual environment (but instead the global system python environment). ## Requires Linux flavor operating system. diff --git a/playbooks/roles/ibridges/tasks/main.yml b/playbooks/roles/ibridges/tasks/main.yml index 78123573..0a49b75d 100644 --- a/playbooks/roles/ibridges/tasks/main.yml +++ b/playbooks/roles/ibridges/tasks/main.yml @@ -9,6 +9,7 @@ name: pipx_install_systemwide vars: pipx_install_systemwide_package: ibridgesgui + pipx_install_systemwide_use_uv: true pipx_install_systemwide_options: include_deps: true pipx_install_systemwide_python: "{{ ibridges_python_path | default('/usr/bin/python3') }}" @@ -19,6 +20,7 @@ ansible.builtin.include_role: name: pipx_install_systemwide vars: + pipx_install_systemwide_use_uv: true pipx_install_systemwide_package: ibridges pipx_install_systemwide_python: "{{ ibridges_python_path | default('/usr/bin/python3') }}" pipx_install_systemwide_extra_packages: "{{ ibridges_install_plugins }}"