Add more packages to install

This commit is contained in:
Przemek Grondek 2023-11-07 18:36:43 +01:00
parent c3aec9f626
commit 7d4487dd9f
2 changed files with 45 additions and 30 deletions

View File

@ -64,11 +64,14 @@
- firefox - firefox
- flameshot - flameshot
- gnome-backgrounds - gnome-backgrounds
- gnome-text-editor
- gnome-themes-extra - gnome-themes-extra
- gsimplecal - gsimplecal
- network-manager-applet - network-manager-applet
- nm-connection-editor - nm-connection-editor
- nautilus
- numlockx - numlockx
- openscad
- pavucontrol - pavucontrol
- pasystray - pasystray
- picom - picom
@ -83,7 +86,10 @@
community.general.pacman: community.general.pacman:
name: name:
- ttf-dejavu - ttf-dejavu
- ttf-fira-code
- ttf-font-awesome - ttf-font-awesome
- ttf-liberation
- ttf-symbola
- ttf-ubuntu-font-family - ttf-ubuntu-font-family
- name: "Enable network manager" - name: "Enable network manager"

View File

@ -1,34 +1,43 @@
- name: "Get PrusaSlicer version" - name: Install prusa-slicer [Ubuntu]
uri: when: ansible_distribution == "Ubuntu"
url: https://api.github.com/repos/prusa3d/PrusaSlicer/releases/latest block:
body_format: json - name: "Get PrusaSlicer version"
register: git_info uri:
url: https://api.github.com/repos/prusa3d/PrusaSlicer/releases/latest
body_format: json
register: git_info
- name: Install on amd64 - name: Install on amd64
become: yes become: yes
when: ansible_architecture == "x86_64" when: ansible_architecture == "x86_64"
get_url: get_url:
url: "{{ (git_info.json | json_query('assets[*].browser_download_url') | select('match', '.*x64-GTK3.*AppImage'))[0] }}" url: "{{ (git_info.json | json_query('assets[*].browser_download_url') | select('match', '.*x64-GTK3.*AppImage'))[0] }}"
dest: /usr/local/bin/prusa-slicer.real dest: /usr/local/bin/prusa-slicer.real
mode: 0755 mode: 0755
- name: Install on arm64 - name: Install on arm64
when: ansible_architecture == "arm64" when: ansible_architecture == "arm64"
become: yes become: yes
get_url: get_url:
url: "{{ (git_info.json | json_query('assets[*].browser_download_url') | select('match', '.*armv7l-GTK2.*AppImage'))[0] }}" url: "{{ (git_info.json | json_query('assets[*].browser_download_url') | select('match', '.*armv7l-GTK2.*AppImage'))[0] }}"
dest: /usr/local/bin/prusa-slicer.real dest: /usr/local/bin/prusa-slicer.real
mode: 0755 mode: 0755
- name: Clean symbolic link - name: Clean symbolic link
become: yes become: yes
file: file:
path: "/usr/local/bin/prusa-slicer" path: "/usr/local/bin/prusa-slicer"
state: absent state: absent
- name: Create symbolic link to real app - name: Create symbolic link to real app
become: yes become: yes
file: file:
src: "/usr/local/bin/prusa-slicer.real" src: "/usr/local/bin/prusa-slicer.real"
dest: "/usr/local/bin/prusa-slicer" dest: "/usr/local/bin/prusa-slicer"
state: link state: link
- name: Install prusa-slicer [Arch]
when: ansible_distribution == "Archlinux"
shell:
cmd:
yay -S --needed --noconfirm prusa-slicer