bookworm/roles/qgm_updatecache/tasks/download.yml

112 lines
2.9 KiB
YAML
Raw Normal View History

2024-02-03 16:42:19 +01:00
---
- name: Create greenfoot/bluej version strings w/o points
set_fact:
2025-03-25 10:57:12 +01:00
bluejVersion: "{{ bluej_target_version | replace('.','.') }}"
2024-02-03 16:42:19 +01:00
greenfootVersion: "{{ greenfoot_target_version | replace('.','') }}"
- name: Get download URIs
set_fact:
bluejURI: "{{ bluej_src_uri | replace ('VERSION', bluejVersion) }}"
greenfootURI: "{{ greenfoot_src_uri | replace ('VERSION', greenfootVersion) }}"
- name: Create target filenames
set_fact:
bluejTargetFile: /var/www/html/javadev/bluej-{{ bluej_target_version }}.deb
greenfootTargetFile: /var/www/html/javadev/greenfoot-{{ greenfoot_target_version }}.deb
- name: Check if greenfoot target-file exists
delegate_to: localhost
stat:
path: "{{ greenfootTargetFile }}"
register: gftf
- name: Check if bluej target-file exists
delegate_to: localhost
stat:
path: "{{ bluejTargetFile }}"
register: bjtf
- name: Download Greenfoot
delegate_to: localhost
command: wget {{ greenfootURI }} -O {{ greenfootTargetFile }}
when: not gftf.stat.exists
2024-09-09 11:51:06 +02:00
- name: Download Bluej
2024-02-03 16:42:19 +01:00
delegate_to: localhost
2024-09-09 11:51:06 +02:00
command: wget {{ bluejURI }} -O {{ bluejTargetFile }}
when: not bjtf.stat.exists
2024-02-03 16:42:19 +01:00
2024-06-06 10:29:07 +02:00
#### Freecad
2024-02-03 16:42:19 +01:00
- name: Check if freecad target-file exists
delegate_to: localhost
stat:
path: "{{ freecadTargetFile }}"
register: fctf
- name: Download FreeCAD AppImage
delegate_to: localhost
command: wget {{ freecadFullURI }} -O {{ freecadTargetFile }}
when: not fctf.stat.exists
#### Arduino
- name: Check if arduino2 target-file exists
delegate_to: localhost
stat:
path: "{{ arduinoTargetFile }}"
register: artf
- name: Download Arduino AppImage
delegate_to: localhost
command: wget {{ arduinoFullURI }} -O {{ arduinoTargetFile }}
when: not artf.stat.exists
#### Prusa Slicer
- name: Check if PrusaSlicer target-file exists
delegate_to: localhost
stat:
path: "{{ prusaTargetFile }}"
register: prtf
- name: Create unzip dir for prusaslicer
ansible.builtin.file:
path: /tmp/prusaslicer.tmp
state: directory
- name: Download and unpack PrusaSlicer Zip-Archive
delegate_to: localhost
unarchive:
src: "{{ prusaFullURI }}"
dest: /tmp/prusaslicer.tmp
remote_src: yes
when: not prtf.stat.exists
- name: Copy Prusyslicer Appimage to cache
copy:
src: "{{ item }}"
dest: "{{ prusaTargetFile }}"
with_fileglob:
- "/tmp/prusaslicer.tmp/*newer-distros*"
##command: wget {{ prusaFullURI }} -O /tmp/prusaslicer.zip
###{{ freecadTargetFile }}
2024-06-06 10:29:07 +02:00
#### Logseq
- name: Check if logseq target-file exists
delegate_to: localhost
stat:
path: "{{ logseqTargetFile }}"
register: lstf
- name: Download logseq AppImage
delegate_to: localhost
command: wget {{ logseqFullURI }} -O {{ logseqTargetFile }}
when: not lstf.stat.exists
### Scratch offline
- name: Download Scratch Offline deb
delegate_to: localhost
command: wget {{ scratch_src_uri }} -O /var/www/html/debs/{{ scratch_install_name }}