2020-06-04 02:15:43 +00:00
|
|
|
---
|
|
|
|
- name: create custom tuned profile directory
|
2023-08-31 01:30:26 +00:00
|
|
|
become: true
|
2020-06-04 02:15:43 +00:00
|
|
|
file:
|
|
|
|
path: "/etc/tuned/{{ tuned_custom_profile.name }}"
|
|
|
|
state: directory
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: copy custom profile configuration file
|
2023-08-31 01:30:26 +00:00
|
|
|
become: true
|
2020-06-04 02:15:43 +00:00
|
|
|
template:
|
|
|
|
src: custom_profile.conf.j2
|
|
|
|
dest: "/etc/tuned/{{ tuned_custom_profile.name }}/tuned.conf"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2023-08-31 01:30:26 +00:00
|
|
|
notify:
|
|
|
|
- restart tuned
|
|
|
|
- enable tuned profile
|
2020-06-04 02:15:43 +00:00
|
|
|
register: tuned_custom_profile_template
|