From 42fb5c5e81f16d64de77bb9daad5d0bddbc8c7ff Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Fri, 5 May 2023 00:52:05 +0200 Subject: [PATCH] Install ego --- localhost.yml | 3 ++- roles/ego/tasks/main.yml | 37 +++++++++++++++++++++++++++++++++++++ roles/ego/vars/main.yml | 3 +++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 roles/ego/tasks/main.yml create mode 100644 roles/ego/vars/main.yml diff --git a/localhost.yml b/localhost.yml index 77aecac..83ce440 100644 --- a/localhost.yml +++ b/localhost.yml @@ -11,5 +11,6 @@ - signal - virtual - lutris - - prusa-slicer + - ego - laptop + - prusa-slicer diff --git a/roles/ego/tasks/main.yml b/roles/ego/tasks/main.yml new file mode 100644 index 0000000..ae12df5 --- /dev/null +++ b/roles/ego/tasks/main.yml @@ -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' diff --git a/roles/ego/vars/main.yml b/roles/ego/vars/main.yml new file mode 100644 index 0000000..5e3f4ab --- /dev/null +++ b/roles/ego/vars/main.yml @@ -0,0 +1,3 @@ +--- +ego: + repo: https://github.com/intgr/ego.git