- name: Deploy OpenSCAP on Debian family
hosts: openscap_debian
become: true
tasks:
- name: Install OpenSCAP
ansible.builtin.apt:
update_cache: true
name:
- openscap-scanner
- scap-security-guide
state: present
failed_when: false
- name: Deploy OpenSCAP on RHEL family
hosts: openscap_rhel
become: true
tasks:
- name: Install OpenSCAP
ansible.builtin.dnf:
name:
- openscap-scanner
- scap-security-guide
state: present