deploy-base/roles/tuned/tasks/configure-custom-profile.yml

23 lines
515 B
YAML
Raw Permalink Normal View History

---
- name: create custom tuned profile directory
2023-08-31 01:30:26 +00:00
become: true
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
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
register: tuned_custom_profile_template