From 5c7b32f5ba60acae88af6e838c79639d68a4fcad Mon Sep 17 00:00:00 2001 From: pmikus Date: Wed, 20 May 2020 15:05:49 +0000 Subject: Infra: Ansible maintenance + As per last discoveries when running from_scratch vs. append_only Signed-off-by: pmikus Change-Id: I8b44314185bbc157a67136730dc6146d133c7cc4 --- .../ansible/roles/performance_tuning/tasks/main.yaml | 5 ++++- .../ansible/roles/performance_tuning/tasks/ubuntu_bionic.yaml | 11 ++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'resources/tools/testbed-setup/ansible/roles/performance_tuning') 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 -- cgit 1.2.3-korg