tuned - install everywhere, custom profile only on EL. mq-deadline support limitation
This commit is contained in:
parent
2db2453f33
commit
4af74a57a3
2 changed files with 20 additions and 20 deletions
|
@ -1,24 +1,4 @@
|
||||||
---
|
---
|
||||||
- name: install packages
|
|
||||||
package:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: latest
|
|
||||||
with_items:
|
|
||||||
- tuned
|
|
||||||
- tuned-utils
|
|
||||||
|
|
||||||
- name: start service
|
|
||||||
service:
|
|
||||||
name: tuned
|
|
||||||
enabled: yes
|
|
||||||
state: started
|
|
||||||
|
|
||||||
- name: get active tuned profile
|
|
||||||
command: /usr/sbin/tuned-adm active
|
|
||||||
register: tuned_active
|
|
||||||
changed_when: false
|
|
||||||
ignore_errors: true
|
|
||||||
|
|
||||||
- name: create custom tuned profile directory
|
- name: create custom tuned profile directory
|
||||||
file:
|
file:
|
||||||
path: "/etc/tuned/{{ tuned_custom_profile.name }}"
|
path: "/etc/tuned/{{ tuned_custom_profile.name }}"
|
||||||
|
|
|
@ -1,5 +1,25 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
- name: install packages
|
||||||
|
package:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: latest
|
||||||
|
with_items:
|
||||||
|
- tuned
|
||||||
|
- tuned-utils
|
||||||
|
|
||||||
|
- name: start service
|
||||||
|
service:
|
||||||
|
name: tuned
|
||||||
|
enabled: yes
|
||||||
|
state: started
|
||||||
|
|
||||||
|
- 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 }}
|
- name: deploy {{ tuned_custom_profile }} based on {{ tuned_base_profile }}
|
||||||
include: configure-custom-profile.yml
|
include: configure-custom-profile.yml
|
||||||
when: (ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "Fedora" ] and not is_atomic)
|
when: (ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "Fedora" ] and not is_atomic)
|
||||||
|
|
Loading…
Reference in a new issue