13 lines
350 B
YAML
13 lines
350 B
YAML
- name: "copy /etc/default/grub"
|
|
copy:
|
|
src: "{{ role_path }}/files/grub"
|
|
dest: "/etc/default"
|
|
register: grub_status
|
|
|
|
- name: "BIOS:grub2-mkconfig"
|
|
shell: grub2-mkconfig -o /boot/grub2/grub.cfg
|
|
when: grub_status.changed
|
|
|
|
- name: "UEFI:grub2-mkconfig"
|
|
shell: grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
|
|
when: grub_status.changed |