aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/performance_tuning
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2020-05-20 15:05:49 +0000
committerpmikus <pmikus@cisco.com>2020-05-20 15:05:49 +0000
commit5c7b32f5ba60acae88af6e838c79639d68a4fcad (patch)
tree601fe25983529d20abf31b43f9b21ab8bdf35e12 /resources/tools/testbed-setup/ansible/roles/performance_tuning
parent1881e1a4a59c3bd4a8574a1a0239a781874a48ec (diff)
Infra: Ansible maintenance
+ As per last discoveries when running from_scratch vs. append_only Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: I8b44314185bbc157a67136730dc6146d133c7cc4
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/performance_tuning')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml5
-rw-r--r--resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/ubuntu_bionic.yaml11
2 files changed, 10 insertions, 6 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 4605783795..3a8f35b57f 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
@@ -22,10 +22,11 @@
line: "{{ grub_cmdline_linux[ansible_machine] | join() }}"
notify:
- "Update GRUB"
- - "Reboot server"
tags:
- set-grub
+- meta: flush_handlers
+
- name: Performance Tuning - Turbo Boost
import_tasks: turbo_boost.yaml
when: >
@@ -160,6 +161,8 @@
owner: "root"
group: "root"
mode: "0644"
+ notify:
+ - "Update GRUB"
tags:
- copy-irqbalance
diff --git a/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/ubuntu_bionic.yaml b/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/ubuntu_bionic.yaml
index f239890989..273ad53f25 100644
--- a/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/ubuntu_bionic.yaml
+++ b/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/ubuntu_bionic.yaml
@@ -2,16 +2,17 @@
# file: roles/performance_tuning/tasks/ubuntu_bionic.yaml
- name: Ubuntu Bionic - Mount /tmp as tmpfs I
- copy:
- src: "/usr/share/systemd/tmp.mount"
- dest: "/etc/systemd/system/tmp.mount"
- remote_src: yes
+ copy:
+ src: "/usr/share/systemd/tmp.mount"
+ dest: "/etc/systemd/system/tmp.mount"
+ remote_src: yes
tags:
- machine-optimizations
- name: Ubuntu Bionic - Mount /tmp as tmpfs II
- service:
+ systemd:
name: "tmp.mount"
+ daemon_reload: yes
enabled: yes
tags:
- machine-optimizations