You've already forked ansible-role-common
Management of GRUB
This commit is contained in:
22
tasks/grub.yml
Normal file
22
tasks/grub.yml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
- 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
|
||||||
|
when: "ansible_os_family == RedHat and ansible_distribution_major_version == 6"
|
||||||
|
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 }}"
|
||||||
|
when: "ansible_os_family == RedHat and ansible_distribution_major_version == 7"
|
||||||
|
notify: Update GRUB
|
||||||
|
tags:
|
||||||
|
- grub
|
||||||
Reference in New Issue
Block a user