Code Review
/
ta
/
infra-ansible.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
audit: Filter-out unavailable AArch64 syscalls
[ta/infra-ansible.git]
/
roles
/
change_kernel_cmdline
/
tasks
/
main.yml
diff --git
a/roles/change_kernel_cmdline/tasks/main.yml
b/roles/change_kernel_cmdline/tasks/main.yml
index
b014073
..
71dfdec
100644
(file)
--- a/
roles/change_kernel_cmdline/tasks/main.yml
+++ b/
roles/change_kernel_cmdline/tasks/main.yml
@@
-66,7
+66,7
@@
- name: Make low latency kernel cmdline parameters.
set_fact:
- name: Make low latency kernel cmdline parameters.
set_fact:
- kcmdline_default_list: "{{ kcmdline_default_list + perf_profile['low_latency_options'] | default([])
]
}}"
+ kcmdline_default_list: "{{ kcmdline_default_list + perf_profile['low_latency_options'] | default([]) }}"
when:
- "tuning == 'low_latency'"
when:
- "tuning == 'low_latency'"
@@
-96,10
+96,21
@@
line: "GRUB_CMDLINE_LINUX_DEFAULT='{{ kcmdline_default_list | list_to_cmdline }}'"
register: grub_cmdline_default
line: "GRUB_CMDLINE_LINUX_DEFAULT='{{ kcmdline_default_list | list_to_cmdline }}'"
register: grub_cmdline_default
+- name: Check whether grub-efi exists
+ stat:
+ path: /boot/efi/EFI/centos/grub.cfg
+ register: grub_efi_file_stat
+
- name: Generate grub configurations
command: grub2-mkconfig -o /boot/grub2/grub.cfg
when: grub_cmdline.changed or grub_cmdline_default.changed
- name: Generate grub configurations
command: grub2-mkconfig -o /boot/grub2/grub.cfg
when: grub_cmdline.changed or grub_cmdline_default.changed
+- name: Generate grub-efi configurations
+ command: grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
+ when:
+ - grub_cmdline.changed or grub_cmdline_default.changed
+ - grub_efi_file_stat.stat.exists == true
+
- name: Ensure network.service is enabled
systemd:
name: network
- name: Ensure network.service is enabled
systemd:
name: network