2018-06-27 15:05:54 +12:00
|
|
|
---
|
|
|
|
|
- name: RHEL6 | Set boot_timeout/delay for GRUB
|
|
|
|
|
ini_file:
|
|
|
|
|
path: /boot/grub/grub.conf
|
|
|
|
|
section: null
|
|
|
|
|
option: timeout
|
|
|
|
|
value: "{{ common_grub_timeout }}"
|
|
|
|
|
state: present
|
2018-06-27 16:06:12 +12:00
|
|
|
no_extra_spaces: yes
|
2018-06-27 16:04:39 +12:00
|
|
|
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version == '6'"
|
2018-06-27 15:05:54 +12:00
|
|
|
tags:
|
|
|
|
|
- grub
|
|
|
|
|
|
|
|
|
|
- name: RHEL7 | Set boot_timeout/delay for GRUB
|
|
|
|
|
ini_file:
|
|
|
|
|
path: /etc/default/grub
|
|
|
|
|
section: null
|
|
|
|
|
option: GRUB_TIMEOUT
|
|
|
|
|
value: "{{ common_grub_timeout }}"
|
2018-06-27 16:06:12 +12:00
|
|
|
no_extra_spaces: yes
|
2022-03-14 22:51:48 +13:00
|
|
|
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version > '6'"
|
2022-03-11 21:02:54 +13:00
|
|
|
notify:
|
2023-10-06 06:58:18 +13:00
|
|
|
- Check if grub.cfg exists
|
2022-03-11 21:02:54 +13:00
|
|
|
- Update GRUB
|
2018-06-27 15:05:54 +12:00
|
|
|
tags:
|
2023-10-06 06:58:18 +13:00
|
|
|
- grub
|