Compare commits
3 Commits
7ee7eebfc7
...
bf6ca66f4b
Author | SHA1 | Date | |
---|---|---|---|
bf6ca66f4b | |||
b180fde76b | |||
c57938fbcb |
@ -5,9 +5,11 @@
|
||||
- ubuntu
|
||||
- firefox
|
||||
- docker
|
||||
- dotfiles
|
||||
- java
|
||||
- jetbrains
|
||||
- compton
|
||||
- signal
|
||||
- virtual
|
||||
- lutris
|
||||
- prusa-slicer
|
||||
|
24
roles/dotfiles/tasks/main.yml
Normal file
24
roles/dotfiles/tasks/main.yml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
- name: install required packages
|
||||
become: yes
|
||||
apt:
|
||||
update_cache: yes
|
||||
pkg:
|
||||
- git
|
||||
- make
|
||||
|
||||
- name: create src dir
|
||||
file:
|
||||
path: ~/src
|
||||
|
||||
- name: checkout dotfiles
|
||||
git:
|
||||
repo: "{{ dotfiles.repo }}"
|
||||
dest: "{{ ansible_user_dir }}/src/dotfiles"
|
||||
clone: yes
|
||||
update: yes
|
||||
|
||||
- name: install
|
||||
make:
|
||||
target: install
|
||||
chdir: "{{ ansible_user_dir }}/src/dotfiles"
|
3
roles/dotfiles/vars/main.yml
Normal file
3
roles/dotfiles/vars/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
dotfiles:
|
||||
repo: https://github.com/pgrondek/dotfiles.git
|
38
roles/prusa-slicer/tasks/main.yml
Normal file
38
roles/prusa-slicer/tasks/main.yml
Normal file
@ -0,0 +1,38 @@
|
||||
- name: install jmespath for json_query
|
||||
become: yes
|
||||
apt:
|
||||
update_cache: yes
|
||||
pkg:
|
||||
- python3-jmespath
|
||||
|
||||
- name: "Get PrusaSlicer version"
|
||||
uri:
|
||||
url: https://api.github.com/repos/prusa3d/PrusaSlicer/releases/latest
|
||||
body_format: json
|
||||
register: git_info
|
||||
|
||||
- name: "Download URL"
|
||||
debug:
|
||||
msg: "{{ (git_info.json | json_query('assets[*].browser_download_url') | select('match', '.*x64-GTK3.*AppImage'))[0] }}"
|
||||
when: ansible_architecture == "x86_64"
|
||||
|
||||
- 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
|
||||
mode: 0755
|
||||
|
||||
- name: "Download URL"
|
||||
debug:
|
||||
msg: "{{ (git_info.json | json_query('assets[*].browser_download_url') | select('match', '.*armv7l-GTK2.*AppImage'))[0] }}"
|
||||
when: ansible_architecture == "arm64"
|
||||
|
||||
- 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
|
||||
mode: 0755
|
@ -55,7 +55,8 @@
|
||||
- name: copy
|
||||
become: yes
|
||||
copy:
|
||||
remote_src: "{{ ansible_user_dir }}/src/looking-glass/client/build/looking-glass-client"
|
||||
src: "{{ ansible_user_dir }}/src/looking-glass/client/build/looking-glass-client"
|
||||
remote_src: yes
|
||||
dest: "/usr/local/bin/looking-glass-client"
|
||||
mode: "0755"
|
||||
force: yes
|
||||
|
Loading…
Reference in New Issue
Block a user