add compliance
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
[defaults]
|
||||
collections_paths=./collections
|
||||
roles_path=./roles
|
||||
|
||||
14
linux/compliance.yml
Normal file
14
linux/compliance.yml
Normal 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 }}"
|
||||
6
roles/requirements.yml
Normal file
6
roles/requirements.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
roles:
|
||||
- name: redhatofficial.rhel7_stig
|
||||
version: 0.1.61
|
||||
- name: redhatofficial.rhel8_stig
|
||||
version: 0.1.60
|
||||
Reference in New Issue
Block a user