removed CentOS

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2022-02-02 11:23:34 +00:00
parent 841b99f2fc
commit 5bf3b914a5
No known key found for this signature in database
GPG key ID: F734FDFC154B83FB

View file

@ -3,8 +3,8 @@
- name: Check OS version and family - name: Check OS version and family
assert: assert:
that: (ansible_os_family == 'RedHat' or ansible_os_family == "Rocky") and ansible_distribution_major_version is version_compare('8', '==') that: (ansible_distribution != 'CentOS' and ansible_os_family == 'RedHat' or ansible_os_family == "Rocky") and ansible_distribution_major_version is version_compare('8', '==')
fail_msg: "This role can only be run against RHEL8 family OSs. {{ ansible_distribution }} {{ ansible_distribution_major_version }} is not supported." fail_msg: "This role can only be run against Supported OSs. {{ ansible_distribution }} {{ ansible_distribution_major_version }} is not supported."
success_msg: "This role is running against a supported OS {{ ansible_distribution }} {{ ansible_distribution_major_version }}" success_msg: "This role is running against a supported OS {{ ansible_distribution }} {{ ansible_distribution_major_version }}"
when: when:
- os_check - os_check
@ -113,6 +113,7 @@
tags: tags:
- rule_5.5.2 - rule_5.5.2
- rule_6.2.7 - rule_6.2.7
- rule_6.2.8
- rule_6.2.20 - rule_6.2.20
- rhel9cis_section6 - rhel9cis_section6