Compare commits
No commits in common. "c5b6529f103665eeb95df60de7288f6ce75f422f" and "81b5c762d6b7140fe3850768aa161c2108ed01a1" have entirely different histories.
c5b6529f10
...
81b5c762d6
4 changed files with 4 additions and 17 deletions
|
@ -15,6 +15,7 @@
|
||||||
- {name: 'power-profiles-daemon', state: 'absent'}
|
- {name: 'power-profiles-daemon', state: 'absent'}
|
||||||
- {name: 'tuned', state: 'present'}
|
- {name: 'tuned', state: 'present'}
|
||||||
when:
|
when:
|
||||||
|
- ('power-profiles-daemon' in ansible_facts.packages) or ('tuned' not in ansible_facts.packages)
|
||||||
- ansible_distribution == 'Fedora'
|
- ansible_distribution == 'Fedora'
|
||||||
- ansible_distribution_major_version|int > 35
|
- ansible_distribution_major_version|int > 35
|
||||||
register: fed_ppdtuned_swap
|
register: fed_ppdtuned_swap
|
||||||
|
@ -46,8 +47,8 @@
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Copy 'common' AMDGPU script for all profiles
|
- name: Copy 'common' AMDGPU script for all profiles
|
||||||
ansible.builtin.template:
|
ansible.builtin.copy:
|
||||||
src: profile-common.sh.j2
|
src: profile-common.sh
|
||||||
dest: "/etc/tuned/{{ item.1 }}-amdgpu-{{ item.0 }}/amdgpu-common.sh"
|
dest: "/etc/tuned/{{ item.1 }}-amdgpu-{{ item.0 }}/amdgpu-common.sh"
|
||||||
mode: "0644" # sourced, doesn't require executable bit
|
mode: "0644" # sourced, doesn't require executable bit
|
||||||
owner: root
|
owner: root
|
||||||
|
@ -87,12 +88,3 @@
|
||||||
name: tuned
|
name: tuned
|
||||||
enabled: true
|
enabled: true
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Copy gamemode memlock limits.d booster
|
|
||||||
become: true
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: etc.security.limits.d.99-gamemode-memlock.conf
|
|
||||||
dest: /etc/security/limits.d/99-gamemode-memlock.conf
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: '0644'
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
{{ ansible_managed | comment }}
|
|
||||||
@gamemode soft memlock 1048576
|
|
||||||
@gamemode hard memlock 1048576
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
{{ ansible_managed | comment }}
|
#
|
||||||
# 'common' file sourced by other scripts under tuned profile
|
# 'common' file sourced by other scripts under tuned profile
|
||||||
#
|
#
|
||||||
# dynamically determine the connected GPU using the DRM subsystem
|
# dynamically determine the connected GPU using the DRM subsystem
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
{{ ansible_managed | comment }}
|
|
||||||
|
|
||||||
[main]
|
[main]
|
||||||
include={{ item.1 }}
|
include={{ item.1 }}
|
||||||
summary={{ item.1 }} + TCP/RAID tweaks + AMDGPU {{ item.0 }}
|
summary={{ item.1 }} + TCP/RAID tweaks + AMDGPU {{ item.0 }}
|
||||||
|
|
Loading…
Reference in a new issue