diff --git a/ansible.cfg b/ansible.cfg index 469af5f..5bd4066 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,2 +1,3 @@ [defaults] collections_paths=./collections +roles_path=./roles diff --git a/linux/compliance.yml b/linux/compliance.yml new file mode 100644 index 0000000..865dab3 --- /dev/null +++ b/linux/compliance.yml @@ -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 }}" \ No newline at end of file diff --git a/roles/requirements.yml b/roles/requirements.yml new file mode 100644 index 0000000..2c4fd7b --- /dev/null +++ b/roles/requirements.yml @@ -0,0 +1,6 @@ +--- +roles: + - name: redhatofficial.rhel7_stig + version: 0.1.61 + - name: redhatofficial.rhel8_stig + version: 0.1.60