From ab781c6e104b6206cbc79557e91725881ecf4f1c Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Mon, 5 Apr 2021 00:23:10 -0500 Subject: [PATCH] tuned: update Apt caches, custom profile on RHEL, +realtime --- roles/tuned/tasks/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/tuned/tasks/main.yml b/roles/tuned/tasks/main.yml index 4ae643c..6428d51 100644 --- a/roles/tuned/tasks/main.yml +++ b/roles/tuned/tasks/main.yml @@ -1,5 +1,10 @@ --- +- name: update apt caches + apt: + update_cache: yes + when: (ansible_os_family in ["Debian"] ) + - name: install packages package: name: "{{ item }}" @@ -7,6 +12,7 @@ with_items: - tuned - tuned-utils + - tuned-profiles-realtime - name: start service service: @@ -22,4 +28,4 @@ - 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) + when: (ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "RedHat", "Fedora" ] and not is_atomic)