ansible-role-basic-system-s.../tasks/tuned_el.yml

32 lines
687 B
YAML

---
- name: tuned_el | Enable the tuned service when we want it active
ansible.builtin.service:
name: tuned
state: started
enabled: true
when: centos_tuned_enabled
tags:
- centos
- bootstrap
- tuned
- name: tuned_el | Disable the tuned service if we do not want it
ansible.builtin.service:
name: tuned
state: stopped
enabled: false
when: not centos_tuned_enabled
tags:
- centos
- bootstrap
- tuned
- name: tuned_el | Activate the tuned profile we chose
ansible.builtin.command: tuned-adm profile {{ centos_tuned_profile }}
when: centos_tuned_enabled
changed_when: false
tags:
- centos
- bootstrap
- tuned