Fix requirements by Ratko Pilipović

This commit is contained in:
Gašper Fele-Žorž 2025-09-02 10:46:21 +02:00
parent 79293545d3
commit c15d6f1edf
11 changed files with 64 additions and 5 deletions

View file

@ -0,0 +1,4 @@
- import_tasks: main_win.yml
when: ansible_os_family == 'Windows'
- import_tasks: main_lin.yml
when: ansible_os_family == 'Debian'

View file

@ -0,0 +1,17 @@
# https://surfer-project.org/
- name: create Surfer direcotry
file:
path: /opt/surfer
state: directory
- name: Download and unpack Surfer
unarchive:
src: https://gitlab.com/api/v4/projects/42073614/jobs/artifacts/main/raw/surfer_linux.zip?job=linux_build
dest: /opt/surfer
remote_src: yes
- name: Add symlink to /usr/local/bin
file:
src: /opt/surfer/surfer
path: /usr/local/bin/surfer
state: link

View file

@ -0,0 +1,11 @@
- name: Download Surfer
win_get_url:
dest: "{{ large_prog_dir }}"
url: https://gitlab.com/api/v4/projects/42073614/jobs/artifacts/main/raw/surfer_win.zip?job=windows_build
register: downloaded_surfer
- name: Unpack Surfer
win_unzip:
src: "{{ downloaded_surfer['dest']}}"
dest: "{{ large_prog_dir }}"
delete_archive: yes