mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
Allow testing on RH8 as dev
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
59bbf71971
commit
fd9747248b
1 changed files with 3 additions and 2 deletions
|
|
@ -2,10 +2,11 @@
|
|||
# tasks file for RHEL9-CIS
|
||||
- name: Check OS version and family
|
||||
fail:
|
||||
msg: "This role can only be run against RHEL 8. {{ ansible_distribution }} {{ ansible_distribution_major_version }} is not supported."
|
||||
msg: "This role can only be run against RHEL 8 or 9. {{ ansible_distribution }} {{ ansible_distribution_major_version }} is not supported."
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- ansible_distribution_major_version is version_compare('9', '!=')
|
||||
- ansible_distribution_major_version == 8 or
|
||||
ansible_distribution_major_version == 9
|
||||
tags:
|
||||
- always
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue