2020-06-26 13:00:27 +02:00
|
|
|
---
|
2020-11-26 10:22:13 +01:00
|
|
|
|
2020-06-26 13:00:27 +02:00
|
|
|
- name: test if grub_timeout is set correctly
|
2021-02-19 14:08:50 +01:00
|
|
|
ansible.builtin.assert:
|
2020-06-26 13:00:27 +02:00
|
|
|
that:
|
|
|
|
|
- grub_timeout is defined
|
2020-11-11 07:38:31 +01:00
|
|
|
- grub_timeout is number
|
2020-11-16 11:23:43 +01:00
|
|
|
- grub_timeout >= 0
|
2020-08-19 21:36:46 +02:00
|
|
|
quiet: yes
|
2020-06-26 13:00:27 +02:00
|
|
|
|
2020-08-23 15:22:37 +02:00
|
|
|
- name: test if grub_recordfail_timeout is set correctly
|
2021-02-19 14:08:50 +01:00
|
|
|
ansible.builtin.assert:
|
2020-08-23 15:22:37 +02:00
|
|
|
that:
|
|
|
|
|
- grub_recordfail_timeout is defined
|
2020-11-11 07:38:31 +01:00
|
|
|
- grub_recordfail_timeout is number
|
2020-11-16 11:23:43 +01:00
|
|
|
- grub_recordfail_timeout >= 0
|
2020-08-23 15:22:37 +02:00
|
|
|
quiet: yes
|
|
|
|
|
|
2020-06-26 13:00:27 +02:00
|
|
|
- name: test if grub_options is set correctly
|
2021-02-19 14:08:50 +01:00
|
|
|
ansible.builtin.assert:
|
2020-06-26 13:00:27 +02:00
|
|
|
that:
|
|
|
|
|
- grub_options is iterable
|
2020-08-19 21:36:46 +02:00
|
|
|
quiet: yes
|
2020-06-26 13:00:27 +02:00
|
|
|
when:
|
|
|
|
|
- grub_options is defined
|
|
|
|
|
|
|
|
|
|
- name: test if item in grub_options is set correctly
|
2021-02-19 14:08:50 +01:00
|
|
|
ansible.builtin.assert:
|
2020-06-26 13:00:27 +02:00
|
|
|
that:
|
|
|
|
|
- item.option is defined
|
2020-11-27 16:32:17 +01:00
|
|
|
- item.option is string
|
2020-06-26 13:00:27 +02:00
|
|
|
- item.value is defined
|
2020-07-02 12:04:39 +02:00
|
|
|
quiet: yes
|
2020-06-26 13:00:27 +02:00
|
|
|
loop: "{{ grub_options }}"
|
2020-07-15 09:23:15 +02:00
|
|
|
loop_control:
|
|
|
|
|
label: "{{ item.option }}"
|
2020-06-26 13:00:27 +02:00
|
|
|
when:
|
|
|
|
|
- grub_options is defined
|