Skip to content

Commit 2a312ca

Browse files
authored
Merge pull request #4 from UtrechtUniversity/dependencies_uv_install
add install dependencies role
2 parents 85104ea + 4dd025f commit 2a312ca

5 files changed

Lines changed: 35 additions & 0 deletions

File tree

playbook.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
gather_facts: false
77
vars: {}
88
roles:
9+
- role: uusrc.general.uv
10+
vars:
11+
uv_vens: { path: '/.venv', python: '3.11' }
12+
uv_python_versions: [ '3.11' ]
13+
# uv_become: false
14+
# uv_become_user:
915
- role: ollama-serve
1016
vars:
1117
ollama_serve_model: "{{ model }}"
@@ -17,3 +23,4 @@
1723
auth: sram
1824
proxy_pass: http://localhost:3000
1925
proxy_set_header: X-Remote-User-Mail $username@localhost
26+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#SPDX-License-Identifier: MIT-0
2+
---
3+
# defaults file for install-dependencies
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#SPDX-License-Identifier: MIT-0
2+
galaxy_info:
3+
author: Jelle Treep & Dawa Ometto & Farshad Radman & Slawa Loev
4+
description: install dependencies with uv
5+
license: MIT
6+
min_ansible_version: 2.1
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#SPDX-License-Identifier: MIT-0
2+
---
3+
# tasks file for uv-install
4+
- name: Install dependencies
5+
command: >
6+
uv add
7+
{{ item.name }}
8+
{% if item.with is defined %}
9+
{% for w in item.with %}--with {{ w }}{% endfor %}
10+
{% endif %}
11+
loop: '{{ dependencies }}'
12+
tags:
13+
- uv
14+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#SPDX-License-Identifier: MIT-0
2+
---
3+
# vars file for install-dependencies
4+
dependencies:
5+
- name: open-webui

0 commit comments

Comments
 (0)