Install ego
This commit is contained in:
parent
8ab79c01dc
commit
42fb5c5e81
@ -11,5 +11,6 @@
|
|||||||
- signal
|
- signal
|
||||||
- virtual
|
- virtual
|
||||||
- lutris
|
- lutris
|
||||||
- prusa-slicer
|
- ego
|
||||||
- laptop
|
- laptop
|
||||||
|
- prusa-slicer
|
||||||
|
37
roles/ego/tasks/main.yml
Normal file
37
roles/ego/tasks/main.yml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
- name: install required packages for dwm
|
||||||
|
become: yes
|
||||||
|
apt:
|
||||||
|
update_cache: yes
|
||||||
|
pkg:
|
||||||
|
- git
|
||||||
|
- rust-all
|
||||||
|
- cargo
|
||||||
|
- libacl1-dev
|
||||||
|
- x11-xserver-utils
|
||||||
|
- xdg-desktop-portal-gtk
|
||||||
|
|
||||||
|
- name: create src dir
|
||||||
|
file:
|
||||||
|
path: ~/src
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: checkout ego
|
||||||
|
git:
|
||||||
|
repo: "{{ ego.repo }}"
|
||||||
|
dest: "{{ ansible_user_dir }}/src/ego"
|
||||||
|
clone: yes
|
||||||
|
update: yes
|
||||||
|
|
||||||
|
- name: build ego
|
||||||
|
command: cargo install ego
|
||||||
|
args:
|
||||||
|
chdir: "{{ ansible_user_dir }}/src/ego"
|
||||||
|
|
||||||
|
- name: copy ego
|
||||||
|
become: yes
|
||||||
|
copy:
|
||||||
|
remote_src: true
|
||||||
|
src: "{{ ansible_user_dir }}/.cargo/bin/ego"
|
||||||
|
dest: /usr/local/bin/ego
|
||||||
|
mode: '0755'
|
3
roles/ego/vars/main.yml
Normal file
3
roles/ego/vars/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
ego:
|
||||||
|
repo: https://github.com/intgr/ego.git
|
Loading…
Reference in New Issue
Block a user