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/os_archlinux.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'roles/workstation/tasks/os_archlinux.yml') diff --git a/roles/workstation/tasks/os_archlinux.yml b/roles/workstation/tasks/os_archlinux.yml index 40b264b..3fc49f6 100644 --- a/roles/workstation/tasks/os_archlinux.yml +++ b/roles/workstation/tasks/os_archlinux.yml @@ -33,3 +33,13 @@ - name: enable battery optimization include_tasks: tlp.yml when: ansible_form_factor in ["Laptop", "Notebook"] + +- name: retrieve installed packages + package_facts: + register: package_facts + +- name: install yay + include_tasks: yay.yml + when: + - "'yay' not in package_facts.ansible_facts.packages" + - "'yay-bin' not in package_facts.ansible_facts.packages" -- cgit v1.2.3