diff --git a/roles/build-50ohm/tasks/prepare.yml b/roles/build-50ohm/tasks/prepare.yml index 9fa0baf..02d8434 100644 --- a/roles/build-50ohm/tasks/prepare.yml +++ b/roles/build-50ohm/tasks/prepare.yml @@ -5,9 +5,8 @@ creates: "{{ destination_path }}/50ohm/.venv" become_user: "{{ fiftyohm_user }}" -- name: Install dependencies with uv pip in {{ destination_path }}/50ohm - ansible.builtin.command: uv pip sync requirements.txt +- name: Install or update uv project in {{ destination_path }}/50ohm + ansible.builtin.command: uv sync args: chdir: "{{ destination_path }}/50ohm" - creates: "{{ destination_path }}/50ohm/.venv/lib/python3.*/site-packages/uv" become_user: "{{ fiftyohm_user }}" diff --git a/roles/install-sources/tasks/main.yml b/roles/install-sources/tasks/main.yml index 7aac047..f709918 100644 --- a/roles/install-sources/tasks/main.yml +++ b/roles/install-sources/tasks/main.yml @@ -30,7 +30,8 @@ dest: "{{ destination_path }}/50ohm/config/config.json" content: > { - "content_path": "../50ohm-contents-dl" + "input": "../50ohm-contents-dl", + "output": "build" } owner: "{{ fiftyohm_user }}" group: "{{ fiftyohm_group }}" diff --git a/roles/refresh-50ohm/files/refresh-50ohm.sh b/roles/refresh-50ohm/files/refresh-50ohm.sh index 37e5c1e..fe6450d 100644 --- a/roles/refresh-50ohm/files/refresh-50ohm.sh +++ b/roles/refresh-50ohm/files/refresh-50ohm.sh @@ -4,4 +4,5 @@ set -euo pipefail git -C 50ohm pull git -C 50ohm-contents-dl pull cd 50ohm +uv sync uv run python3 ./build.py