From 5087cbca6d69d84ac4e947dc349e2d3620a27ec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Fri, 22 Sep 2023 19:57:57 +0200 Subject: [PATCH] Update laptop tasks --- roles/laptop/tasks/asus-x13-flow.yml | 1 + roles/laptop/tasks/nvidia-drivers.yml | 14 ++++++++++++++ roles/laptop/tasks/supergfxctl.yml | 6 ++++++ 3 files changed, 21 insertions(+) create mode 100644 roles/laptop/tasks/nvidia-drivers.yml diff --git a/roles/laptop/tasks/asus-x13-flow.yml b/roles/laptop/tasks/asus-x13-flow.yml index 556ffd3..8b810f4 100644 --- a/roles/laptop/tasks/asus-x13-flow.yml +++ b/roles/laptop/tasks/asus-x13-flow.yml @@ -11,3 +11,4 @@ - import_tasks: battery.yml - import_tasks: asusctl.yml - import_tasks: supergfxctl.yml + - import_tasks: nvidia-drivers.yml diff --git a/roles/laptop/tasks/nvidia-drivers.yml b/roles/laptop/tasks/nvidia-drivers.yml new file mode 100644 index 0000000..d71e63a --- /dev/null +++ b/roles/laptop/tasks/nvidia-drivers.yml @@ -0,0 +1,14 @@ +- name: [Arch] install nvidia drivers + when: ansible_distribution == "Archlinux" + become: yes + community.general.pacman: + name: + - nvidia + - nvidia-settings + - nvidia-primepri + - vulkan-radeon + - xf86-video-amdgpu + - libva-mesa-driver + - lib32-amdvlk + - lib32-nvidia-utils + diff --git a/roles/laptop/tasks/supergfxctl.yml b/roles/laptop/tasks/supergfxctl.yml index 9ff840e..39eb975 100644 --- a/roles/laptop/tasks/supergfxctl.yml +++ b/roles/laptop/tasks/supergfxctl.yml @@ -7,3 +7,9 @@ yay -S --needed --noconfirm supergfxctl when: ansible_distribution == "Archlinux" +- name: Enable supergfxctl + become: yes + ansible.builtin.systemd: + name: supergfxctl + state: started + enabled: yes