From 8f3e6b243dac65e1a984bd4b2bb5ddec7c36d553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 4 Dec 2021 18:40:42 +0000 Subject: roles/workstation: Add yay task for archlinux --- roles/workstation/tasks/yay.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 roles/workstation/tasks/yay.yml (limited to 'roles/workstation/tasks/yay.yml') diff --git a/roles/workstation/tasks/yay.yml b/roles/workstation/tasks/yay.yml new file mode 100644 index 0000000..cafbc9c --- /dev/null +++ b/roles/workstation/tasks/yay.yml @@ -0,0 +1,19 @@ +- name: clone yay repository + git: + repo: "{{ workstation_yay_repo }}" + dest: "{{ workstation_yay_dir }}" + version: origin/master + become: true + become_user: "{{ workstation_user }}" + +- name: make yay package # noqa: no-changed-when + command: + cmd: makepkg -fs + chdir: "{{ workstation_yay_dir }}" + become: true + become_user: "{{ workstation_user }}" + +- name: install yay package # noqa: no-changed-when + shell: + cmd: pacman --noconfirm -U *.zst + chdir: "{{ workstation_yay_dir }}" -- cgit v1.2.3