2019-02-26 03:49:51 +00:00
|
|
|
---
|
|
|
|
|
2019-06-19 04:46:43 +00:00
|
|
|
- name: install packages
|
|
|
|
package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: latest
|
|
|
|
with_items:
|
|
|
|
- tuned
|
|
|
|
- tuned-utils
|
|
|
|
|
|
|
|
- name: start service
|
|
|
|
service:
|
|
|
|
name: tuned
|
|
|
|
enabled: yes
|
|
|
|
state: started
|
2020-06-04 02:15:43 +00:00
|
|
|
|
|
|
|
- name: get active tuned profile
|
|
|
|
command: /usr/sbin/tuned-adm active
|
|
|
|
register: tuned_active
|
|
|
|
changed_when: false
|
|
|
|
ignore_errors: true
|
|
|
|
|
|
|
|
- name: deploy {{ tuned_custom_profile }} based on {{ tuned_base_profile }}
|
|
|
|
include: configure-custom-profile.yml
|