tuned: release-dependent profile basedir, lint
This commit is contained in:
parent
0c33dccba8
commit
c475723f52
4 changed files with 35 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue