From 2e89f40558736a5fcc8d7324fc0d40fd8a71673a Mon Sep 17 00:00:00 2001 From: exu Date: Sun, 27 Oct 2024 18:45:06 +0100 Subject: [PATCH] Add overclocking for AMD GPUs --- .../config/files/etc/modprobe.d/99-amdgpu-overdrive.conf | 1 + roles/config/tasks/main.yml | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 roles/config/files/etc/modprobe.d/99-amdgpu-overdrive.conf diff --git a/roles/config/files/etc/modprobe.d/99-amdgpu-overdrive.conf b/roles/config/files/etc/modprobe.d/99-amdgpu-overdrive.conf new file mode 100644 index 00000000..adae7b96 --- /dev/null +++ b/roles/config/files/etc/modprobe.d/99-amdgpu-overdrive.conf @@ -0,0 +1 @@ +options amdgpu ppfeaturemask=0xFFF7FFFF diff --git a/roles/config/tasks/main.yml b/roles/config/tasks/main.yml index 97744dc0..266c2dce 100644 --- a/roles/config/tasks/main.yml +++ b/roles/config/tasks/main.yml @@ -224,6 +224,15 @@ become: true tags: services +- name: Enable LACT daemon + ansible.builtin.systemd_service: + name: "lactd" + state: "started" + enabled: true + when: ('lact' in ansible_facts.packages) + become: true + tags: services + - name: Create groups ansible.builtin.group: name: "{{ item }}"