mirror of
https://github.com/nicolabs/ansible-role-grub.git
synced 2026-04-10 12:41:49 +02:00
Add a GRUB_RECORDFAIL_TIMEOUT option.
This commit is contained in:
parent
8e7c770cf3
commit
4a4d9dff10
|
|
@ -74,6 +74,8 @@ These variables are set in `defaults/main.yml`:
|
|||
|
||||
grub_timeout: 5
|
||||
|
||||
grub_recordfail_timeout: "{{ grub_timeout }}"
|
||||
|
||||
# Add options here, for example:
|
||||
# grub_options:
|
||||
# - option: cgroup_enable
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
grub_timeout: 5
|
||||
|
||||
grub_recordfail_timeout: "{{ grub_timeout }}"
|
||||
|
||||
# Add options here, for example:
|
||||
# grub_options:
|
||||
# - option: cgroup_enable
|
||||
|
|
|
|||
|
|
@ -6,6 +6,13 @@
|
|||
- grub_timeout | int >= 0
|
||||
quiet: yes
|
||||
|
||||
- name: test if grub_recordfail_timeout is set correctly
|
||||
assert:
|
||||
that:
|
||||
- grub_recordfail_timeout is defined
|
||||
- grub_recordfail_timeout | int >= 0
|
||||
quiet: yes
|
||||
|
||||
- name: test if grub_options is set correctly
|
||||
assert:
|
||||
that:
|
||||
|
|
|
|||
|
|
@ -16,6 +16,14 @@
|
|||
notify:
|
||||
- update grub
|
||||
|
||||
- name: set GRUB_RECORDFAIL_TIMEOUT
|
||||
lineinfile:
|
||||
path: /etc/default/grub
|
||||
line: GRUB_RECORDFAIL_TIMEOUT={{ grub_recordfail_timeout }}
|
||||
create: yes
|
||||
notify:
|
||||
- update grub
|
||||
|
||||
- name: add options to GRUB_CMDLINE_LINUX
|
||||
replace:
|
||||
path: /etc/default/grub
|
||||
|
|
|
|||
Loading…
Reference in a new issue