tuned - only do custom profile on EL distros, mq-deadline support limitation

This commit is contained in:
Josh Lay 2020-06-03 21:31:57 -05:00
parent 42ed67a3d0
commit 2db2453f33
2 changed files with 21 additions and 22 deletions

View file

@ -1,6 +1,24 @@
# borrowed from https://github.com/giovtorres/ansible-role-tuned/
# trivially changed based on style preferences
---
- 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
file:
path: "/etc/tuned/{{ tuned_custom_profile.name }}"

View file

@ -1,24 +1,5 @@
---
- 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 }}
include: configure-custom-profile.yml
when: (ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "Fedora" ] and not is_atomic)