Infra: Minor ansible tweaks
[csit.git] / resources / tools / testbed-setup / ansible / roles / performance_tuning / tasks / main.yaml
index feef2ca..e9cdd0d 100644 (file)
   tags:
     - perf-inst-prerequisites
 
-- name: Conf - Kernel Parameters
-  lineinfile:
-    path: "/etc/default/grub"
-    state: "present"
-    regexp: "^GRUB_CMDLINE_LINUX="
-    line: "GRUB_CMDLINE_LINUX=\"{% for key, value in grub.items() %}{% if value is sameas true %}{{key}} {% else %}{{key}}={{value}} {% endif %}{% endfor %}\""
-  notify:
-    - "Update GRUB"
-  tags:
-    - perf-conf-grub
-
-- meta: flush_handlers
-
 - name: Conf - Turbo Boost
   import_tasks: turbo_boost.yaml
   when: >
     owner: "root"
     group: "root"
     mode: 0644
-  notify:
-    - "Update GRUB"
   tags:
     - perf-conf-irqbalance
 
   tags:
     - perf-conf-ondemand
 
+- name: Conf - Kernel Parameters
+  lineinfile:
+    path: "/etc/default/grub"
+    state: "present"
+    regexp: "^GRUB_CMDLINE_LINUX="
+    line: "GRUB_CMDLINE_LINUX=\"{% for key, value in grub.items() %}{% if value is sameas true %}{{key}} {% else %}{{key}}={{value}} {% endif %}{% endfor %}\""
+  notify:
+    - "Update GRUB"
+  tags:
+    - perf-conf-grub
+
+- meta: flush_handlers
+
 - name: Conf - Load Kernel Modules By Default
   lineinfile:
     path: "/etc/modules"
     line: "{{ item }}"
   with_items:
     - "vfio-pci"
+  notify:
+    - "Reboot Server"
   tags:
     - perf-conf-load-kernel-modules
 
-- meta: flush_handlers
+- meta: flush_handlers
\ No newline at end of file