blob: 77c9a434307e33d1d3388671896701dbf6c2739a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
---
# file: tasks/main.yaml
- name: "Check Kernel Parameters"
ansible.builtin.assert:
that:
- item in ansible_cmdline
fail_msg: "Kernel parameters!"
success_msg: "Kernel parameters match."
loop: "{{ grub.keys()|sort }}"
when:
- grub is defined
tags:
- check-kernel-params
- name: "Check Kernel Version"
ansible.builtin.assert:
that:
- ansible_kernel not in kernel_version_by_distro_by_arch
fail_msg: "Kernel version!"
success_msg: "Kernel version match."
tags:
- check-kernel-version
|