diff options
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/performance_tuning')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml | 8 | ||||
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/turbo_boost.yaml | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml index c437b40f86..608d3e2505 100644 --- a/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml @@ -1,11 +1,17 @@ --- # file: roles/performance_tuning/tasks/main.yaml +- Name: Update package cache (apt) + apt: + update_cache: yes + cache_valid_time: 3600 + when: + - ansible_distribution|lower == 'ubuntu' + - name: Performance Tuning - Install Distribution - Release - Machine Prerequisites package: name: "{{ packages | flatten(levels=1) }}" state: latest - update_cache: true tags: - install-dependencies diff --git a/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/turbo_boost.yaml b/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/turbo_boost.yaml index 310803ca5b..23cca0566e 100644 --- a/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/turbo_boost.yaml +++ b/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/turbo_boost.yaml @@ -1,12 +1,18 @@ --- # file: roles/performance_tuning/tasks/turbo_boost.yaml +- Name: Update package cache (apt) + apt: + update_cache: yes + cache_valid_time: 3600 + when: + - ansible_distribution|lower == 'ubuntu' + - name: Turbo Boost - Install msr-tools package: name: - "msr-tools" state: latest - update_cache: true tags: - turbo-boost |