Files
ansible-role-common/tasks/grub.yml

27 lines
680 B
YAML
Raw Normal View History

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
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 }}"
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