tuned: release-dependent profile basedir, lint

This commit is contained in:
Josh Lay 2025-07-27 12:34:44 -05:00
parent 0c33dccba8
commit c475723f52
Signed by: jlay
SSH key fingerprint: SHA256:RwEMoWwXniQX1sqHfSD+3z+LKU/TOkv3i1qsy75vfec
4 changed files with 35 additions and 25 deletions

View file

@ -1,22 +1,22 @@
---
- name: create custom tuned profile directory
- name: Ensure profile directory
become: true
file:
path: "/etc/tuned/{{ tuned_custom_profile.name }}"
ansible.builtin.file:
path: "{{ (tuned_amdgpu_profile_dir, tuned_custom_profile.name) | path_join }}"
state: directory
owner: root
group: root
mode: 0755
mode: '0755'
- name: copy custom profile configuration file
- name: Profile configuration
become: true
template:
ansible.builtin.template:
src: custom_profile.conf.j2
dest: "/etc/tuned/{{ tuned_custom_profile.name }}/tuned.conf"
dest: "{{ (tuned_amdgpu_profile_dir, tuned_custom_profile.name, 'tuned.conf') | path_join }}"
owner: root
group: root
mode: 0644
mode: '0644'
notify:
- restart tuned
- enable tuned profile
- tuned_restart
- tuned_enable
register: tuned_custom_profile_template