diff --git a/roles/desktop/tasks/arch.yml b/roles/desktop/tasks/arch.yml index ebf491e..b36bf04 100644 --- a/roles/desktop/tasks/arch.yml +++ b/roles/desktop/tasks/arch.yml @@ -64,11 +64,14 @@ - firefox - flameshot - gnome-backgrounds + - gnome-text-editor - gnome-themes-extra - gsimplecal - network-manager-applet - nm-connection-editor + - nautilus - numlockx + - openscad - pavucontrol - pasystray - picom @@ -83,7 +86,10 @@ community.general.pacman: name: - ttf-dejavu + - ttf-fira-code - ttf-font-awesome + - ttf-liberation + - ttf-symbola - ttf-ubuntu-font-family - name: "Enable network manager" diff --git a/roles/prusa-slicer/tasks/install-program.yml b/roles/prusa-slicer/tasks/install-program.yml index d205315..5142ca5 100644 --- a/roles/prusa-slicer/tasks/install-program.yml +++ b/roles/prusa-slicer/tasks/install-program.yml @@ -1,34 +1,43 @@ -- name: "Get PrusaSlicer version" - uri: - url: https://api.github.com/repos/prusa3d/PrusaSlicer/releases/latest - body_format: json - register: git_info +- name: Install prusa-slicer [Ubuntu] + when: ansible_distribution == "Ubuntu" + block: + - name: "Get PrusaSlicer version" + uri: + url: https://api.github.com/repos/prusa3d/PrusaSlicer/releases/latest + body_format: json + register: git_info -- name: Install on amd64 - become: yes - when: ansible_architecture == "x86_64" - get_url: - url: "{{ (git_info.json | json_query('assets[*].browser_download_url') | select('match', '.*x64-GTK3.*AppImage'))[0] }}" - dest: /usr/local/bin/prusa-slicer.real - mode: 0755 + - name: Install on amd64 + become: yes + when: ansible_architecture == "x86_64" + get_url: + url: "{{ (git_info.json | json_query('assets[*].browser_download_url') | select('match', '.*x64-GTK3.*AppImage'))[0] }}" + dest: /usr/local/bin/prusa-slicer.real + mode: 0755 -- name: Install on arm64 - when: ansible_architecture == "arm64" - become: yes - get_url: - url: "{{ (git_info.json | json_query('assets[*].browser_download_url') | select('match', '.*armv7l-GTK2.*AppImage'))[0] }}" - dest: /usr/local/bin/prusa-slicer.real - mode: 0755 + - name: Install on arm64 + when: ansible_architecture == "arm64" + become: yes + get_url: + url: "{{ (git_info.json | json_query('assets[*].browser_download_url') | select('match', '.*armv7l-GTK2.*AppImage'))[0] }}" + dest: /usr/local/bin/prusa-slicer.real + mode: 0755 -- name: Clean symbolic link - become: yes - file: - path: "/usr/local/bin/prusa-slicer" - state: absent + - name: Clean symbolic link + become: yes + file: + path: "/usr/local/bin/prusa-slicer" + state: absent -- name: Create symbolic link to real app - become: yes - file: - src: "/usr/local/bin/prusa-slicer.real" - dest: "/usr/local/bin/prusa-slicer" - state: link + - name: Create symbolic link to real app + become: yes + file: + src: "/usr/local/bin/prusa-slicer.real" + dest: "/usr/local/bin/prusa-slicer" + state: link + +- name: Install prusa-slicer [Arch] + when: ansible_distribution == "Archlinux" + shell: + cmd: + yay -S --needed --noconfirm prusa-slicer