22 lines
574 B
YAML
22 lines
574 B
YAML
---
|
|
- name: Ensure profile directory
|
|
become: true
|
|
ansible.builtin.file:
|
|
path: "{{ (tuned_amdgpu_profile_dir, tuned_custom_profile.name) | path_join }}"
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: '0755'
|
|
|
|
- name: Profile configuration
|
|
become: true
|
|
ansible.builtin.template:
|
|
src: custom_profile.conf.j2
|
|
dest: "{{ (tuned_amdgpu_profile_dir, tuned_custom_profile.name, 'tuned.conf') | path_join }}"
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify:
|
|
- tuned_restart
|
|
- tuned_enable
|
|
register: tuned_custom_profile_template
|