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

22 lines
515 B
YAML

---
- name: create custom tuned profile directory
become: true
file:
path: "/etc/tuned/{{ tuned_custom_profile.name }}"
state: directory
owner: root
group: root
mode: 0755
- name: copy custom profile configuration file
become: true
template:
src: custom_profile.conf.j2
dest: "/etc/tuned/{{ tuned_custom_profile.name }}/tuned.conf"
owner: root
group: root
mode: 0644
notify:
- restart tuned
- enable tuned profile
register: tuned_custom_profile_template