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)