tuned: update Apt caches, custom profile on RHEL, +realtime

This commit is contained in:
Josh Lay 2021-04-05 00:23:10 -05:00
parent f931d40998
commit ab781c6e10

View file

@ -1,5 +1,10 @@
--- ---
- name: update apt caches
apt:
update_cache: yes
when: (ansible_os_family in ["Debian"] )
- name: install packages - name: install packages
package: package:
name: "{{ item }}" name: "{{ item }}"
@ -7,6 +12,7 @@
with_items: with_items:
- tuned - tuned
- tuned-utils - tuned-utils
- tuned-profiles-realtime
- name: start service - name: start service
service: service:
@ -22,4 +28,4 @@
- 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", "RedHat", "Fedora" ] and not is_atomic)