From 4ce905ad00196a6ffb46d0d62128dbc0203d2e82 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 5 Jan 2022 20:58:26 +0100 Subject: install some stuff on equinox-ws and t450s --- chaos-at-home/ch-equinox-ws.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'chaos-at-home/ch-equinox-ws.yml') diff --git a/chaos-at-home/ch-equinox-ws.yml b/chaos-at-home/ch-equinox-ws.yml index 37f6fe09..0b1ca3c1 100644 --- a/chaos-at-home/ch-equinox-ws.yml +++ b/chaos-at-home/ch-equinox-ws.yml @@ -67,3 +67,24 @@ name: flathub flatpakrepo_url: https://flathub.org/repo/flathub.flatpakrepo state: present + + - name: install gotify-desktop + become: yes + become_method: su + become_user: "equinox" + block: + - name: get list of installed cargo crates + check_mode: no + command: "cargo install --list" + changed_when: false + register: installed_cargo_crates + + - name: build + loop: + - name: gotify-desktop + version: 1.2.0 + url: https://github.com/desbma/gotify-desktop.git + loop_control: + label: "{{ item.name }} ({{ item.version }})" + when: (item.name+' v'+ item.version) not in installed_cargo_crates.stdout + command: "cargo install --git '{{ item.url }}' --tag '{{ item.version }}'" -- cgit v1.2.3