2n-zn2 Epyc backport
[csit.git] / resources / tools / testbed-setup / ansible / roles / performance_tuning / tasks / main.yaml
index 4605783..c437b40 100644 (file)
     path: "/etc/default/grub"
     state: "present"
     regexp: "^GRUB_CMDLINE_LINUX="
-    line: "{{ grub_cmdline_linux[ansible_machine] | join() }}"
+    line: "GRUB_CMDLINE_LINUX=\"{% for key, value in grub.items() %}{% if value %}{{key}}={{value}} {% else %}{{key}} {% endif %}{% endfor %}\""
   notify:
     - "Update GRUB"
-    - "Reboot server"
   tags:
     - set-grub
 
+- meta: flush_handlers
+
 - name: Performance Tuning - Turbo Boost
   import_tasks: turbo_boost.yaml
   when: >
     owner: "root"
     group: "root"
     mode: "0644"
+  notify:
+    - "Update GRUB"
   tags:
     - copy-irqbalance