SW Download als role, kernel Bug

This commit is contained in:
Frank Schiebel 2024-02-03 16:42:19 +01:00
parent 29a5b8841e
commit 98bdbf9daa
21 changed files with 649 additions and 407 deletions

View file

@ -0,0 +1,19 @@
[Desktop Entry]
Name=FreeCAD Appimage
Name[de]=FreeCAD Appimage
Name[pl]=FreeCAD Appimage
Name[ru]=FreeCAD Appimage
Comment=Feature based Parametric Modeler Appimage
Comment[de]=Feature-basierter parametrischer Modellierer Appimage
Comment[ru]=Система автоматизированного проектирования Appimage
GenericName=CAD Application Appimage
GenericName[de]=CAD-Anwendung Appimage
GenericName[pl]=Aplikacja CAD Appimage
GenericName[ru]=Система автоматизированного проектирования Appimage
Exec=/opt/appimages/freecad/FreeCAD.AppImage - --single-instance %F
Terminal=false
Type=Application
Icon=org.freecadweb.FreeCAD
Categories=Graphics;Science;Education;Engineering;
StartupNotify=true
MimeType=application/x-extension-fcstd;model/obj;model/iges;image/vnd.dwg;image/vnd.dxf;model/vnd.collada+xml;application/iges;model/iges;model/step;model/step+zip;model/stl;application/vnd.shp;model/vrml;

View file

@ -0,0 +1,66 @@
---
#########
# Greenfoot und BlueJ.
- name: Determine installed bluej version
shell: "dpkg -l bluej 2> /dev/null | grep ii | awk '{print $3}'"
register: command_output
- set_fact:
bluej_installed_version: "{{ command_output.stdout }}"
- name: Determine installed greenfoot version
shell: "dpkg -l greenfoot 2> /dev/null | grep ii | awk '{print $3}'"
register: command_output
- set_fact:
greenfoot_installed_version: "{{ command_output.stdout }}"
- name: Install bluej if necessary
ansible.builtin.apt:
deb: "{{ mirror_javadev }}/bluej-{{ bluej_target_version}}.deb"
when: (mirror_javadev is defined and mirror_javadev | length > 0) and
(bluej_target_version is defined and bluej_target_version | length > 0 ) and
(bluej_installed_version != bluej_target_version )
- name: Install greenfoot if necessary
ansible.builtin.apt:
deb: "{{ mirror_javadev }}/greenfoot-{{ greenfoot_target_version }}.deb"
when: (mirror_javadev is defined and mirror_javadev | length > 0) and
(greenfoot_target_version is defined and greenfoot_target_version | length > 0 ) and
(greenfoot_installed_version != greenfoot_target_version )
########
# FreeCAD AppImage
#
- name: Make sure target dir exists
ansible.builtin.file:
path: /opt/appimages/freecad/
state: directory
recurse: yes
owner: root
group: root
mode: '0755'
- name: Download FreeCAD AppImage from Cache
ansible.builtin.get_url:
url: "{{ mirror_appimage }}/FreeCAD.AppImage"
dest: /opt/appimages/freecad/FreeCAD.AppImage
mode: '0755'
- name: Copy desktop starter file to target
copy:
src: files/qg.appimage.FreeCAD.desktop
dest: /usr/share/applications/qg.appimage.FreeCAD.desktop
mode: '0644'
owner: root
group: root
########
# Digital als tarpack
#
- name: Unpack digital.zip to target
ansible.builtin.unarchive:
src: "{{ tarpack_digital }}"
dest: /
remote_src: yes
when: tarpack_digital is defined and tarpack_digital | length > 0

View file

@ -0,0 +1,4 @@
---
- name: Install additional software
import_tasks:
file: install.yml