From df2931ca81ee1891f5298e2541fd5ccfce0f962c Mon Sep 17 00:00:00 2001 From: Alexandre Pires Date: Sat, 1 Nov 2025 15:27:21 +0100 Subject: [PATCH] feat: Enhance NVIDIA module management and optimize boot configuration --- ansible/playbook_game_station.yml | 37 +++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/ansible/playbook_game_station.yml b/ansible/playbook_game_station.yml index 5a4a5a0..eb735e8 100644 --- a/ansible/playbook_game_station.yml +++ b/ansible/playbook_game_station.yml @@ -24,10 +24,16 @@ - splash - amd_pstate=active - nvidia_drm.modeset=1 + - fbdev=1 - mitigations=off - threadirqs - nohz_full=1-7,9-15 - rcu_nocbs=1-7,9-15 + nvidia_modules: + - nvidia + - nvidia_modeset + - nvidia_uvm + - nvidia_drm tasks: # --- Base dependencies --- @@ -86,6 +92,19 @@ enabled: true state: started + - name: Ensure NVIDIA modules are loaded at boot + become: true + ansible.builtin.copy: + dest: /etc/modules-load.d/nvidia.conf + owner: root + group: root + mode: "0644" + content: | + {% for module in nvidia_modules %} + {{ module }} + {% endfor %} + notify: Run dracut + - name: Determine default network interface ansible.builtin.set_fact: primary_iface: "{{ ansible_default_ipv4.interface }}" @@ -144,8 +163,17 @@ enabled: false state: stopped loop: - - gdm - - sddm + - gdm.service + - sddm.service + - bluetooth.service + - ModemManager.service + - cups.service + - avahi-daemon.service + - chronyd.service + - NetworkManager-wait-online.service + - geoclue.service + - smartd.service + - upower.service # System actions - name: Install Systemd system files @@ -367,3 +395,8 @@ ansible.builtin.command: grub2-mkconfig -o /boot/grub2/grub.cfg become: true changed_when: false + + - name: Run dracut + ansible.builtin.command: dracut --force + become: true + changed_when: false