From 4f29b6dd05b4826f7a1df57d70537f2dc8d1d8f8 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Tue, 14 Jul 2026 17:24:38 +0200 Subject: Replace hyprland_nvidia boolean with a fact from the role This to make the role have less configurations, and less prune to human errors --- roles/hyprland/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'roles/hyprland/tasks') diff --git a/roles/hyprland/tasks/main.yml b/roles/hyprland/tasks/main.yml index d14b556c..4a64956e 100644 --- a/roles/hyprland/tasks/main.yml +++ b/roles/hyprland/tasks/main.yml @@ -1,4 +1,11 @@ --- +- name: "Detect NVIDIA driver" + ansible.builtin.command: + cmd: "modinfo nvidia" + register: "hyprland_nvidia_detected" + changed_when: false + failed_when: false + - name: "Ensure hyprland packages are installed" become: true ansible.builtin.package: -- cgit v1.2.3