diff --git a/packer/ansible/playbook.yml b/packer/ansible/playbook.yml index 1dcea81..6d73054 100644 --- a/packer/ansible/playbook.yml +++ b/packer/ansible/playbook.yml @@ -55,6 +55,8 @@ version: 1.8.5 visicut: url: "https://github.com/t-oster/VisiCut/releases/download/1.7_310/visicut_1.7-310-gcf8c087-1_all.deb" + cura: + version: 3.2.1 debian_sections: - main - contrib diff --git a/packer/ansible/roles/fablab/files/cura.desktop b/packer/ansible/roles/fablab/files/cura.desktop new file mode 100644 index 0000000..0c5e228 --- /dev/null +++ b/packer/ansible/roles/fablab/files/cura.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Cura +GenericName=Cura +Comment=3D slicer +Exec=/opt/cura.AppImage +Icon=/opt/cura.png +Terminal=false +Type=Application +Categories=Graphics diff --git a/packer/ansible/roles/fablab/files/cura.png b/packer/ansible/roles/fablab/files/cura.png new file mode 100644 index 0000000..8fd6f41 Binary files /dev/null and b/packer/ansible/roles/fablab/files/cura.png differ diff --git a/packer/ansible/roles/fablab/tasks/cura.yml b/packer/ansible/roles/fablab/tasks/cura.yml index cee1d95..ef680b3 100644 --- a/packer/ansible/roles/fablab/tasks/cura.yml +++ b/packer/ansible/roles/fablab/tasks/cura.yml @@ -1,5 +1,16 @@ --- -- name: install cura (OOOOLD!) - apt: - deb: "https://software.ultimaker.com/current/Cura-2.3.1-Linux.deb" - state: present +- name: install cura + get_url: + url: "http://software.ultimaker.com/current/Cura-{{ fablab.cura.version }}.AppImage" + dest: /opt/cura.AppImage + mode: 775 + +- name: get cura icon + copy: + src: cura.png + dest: /opt/cura.png + +- name: install cura dekstop file + copy: + src: cura.desktop + dest: /usr/share/applications/cura.desktop