aboutsummaryrefslogtreecommitdiffstats
path: root/roles/workstation/tasks/os_archlinux.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-04 18:40:42 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-05 09:33:30 +0000
commit8f3e6b243dac65e1a984bd4b2bb5ddec7c36d553 (patch)
treeb928e0a18aa0e5b9265048a3be0329860350bfb4 /roles/workstation/tasks/os_archlinux.yml
parent5c2e3443bedf0ef6a34888ea30361af7da314748 (diff)
downloadrules-8f3e6b243dac65e1a984bd4b2bb5ddec7c36d553.tar.gz
roles/workstation: Add yay task for archlinux
Diffstat (limited to 'roles/workstation/tasks/os_archlinux.yml')
-rw-r--r--roles/workstation/tasks/os_archlinux.yml10
1 files changed, 10 insertions, 0 deletions
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"
remember that computers suck.