Allow testing on RH8 as dev

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2022-01-07 11:15:43 +00:00
parent 59bbf71971
commit fd9747248b
No known key found for this signature in database
GPG key ID: F734FDFC154B83FB

View file

@ -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