16 lines
415 B
YAML
16 lines
415 B
YAML
---
|
|
- name: Apply compliance profile
|
|
hosts: "{{ _hosts | default(omit) }}"
|
|
become: true
|
|
vars:
|
|
compliance_profile: undef
|
|
|
|
tasks:
|
|
- name: Check os type
|
|
ansible.builtin.assert:
|
|
that: "ansible_os_family == 'RedHat'"
|
|
|
|
- name: Run compliance profile
|
|
ansible.builtin.include_role:
|
|
name: "redhatofficial.rhel{{ ansible_distribution_major_version }}_{{ compliance_profile }}"
|