add compliance

This commit is contained in:
willtome
2022-06-28 14:30:47 -04:00
parent f9cc056c4a
commit 005306ebb9
3 changed files with 21 additions and 0 deletions

14
linux/compliance.yml Normal file
View File

@@ -0,0 +1,14 @@
---
- hosts: "{{ HOSTS }}"
become: true
vars:
compliance_profile: undef
tasks:
- name: Check OS Type
assert:
that: "ansible_os_family == 'RedHat'"
- name: Run Compliance Profile
include_role:
name: "redhatofficial.rhel{{ ansible_distribution_major_version }}_{{ compliance_profile }}"