Playbooks to implement Center for Internet Security (CIS) controls for RHEL (7-9), RHEL Clones, Ubuntu (18.04-22.04), and Microsoft Windows (10, Server 2019)
For ubuntu22, ubuntu18, redhat9, redhat8, redhat7 the task Process removal list tries to uninstall the unneeded_packages package instead of the packages listed in the unneeded_packages variable
- name: Process removal list
ansible.builtin.package:
name: unneeded_packages
state: absent
to fix the issue replace unneeded_packages with "{{ unneeded_packages }}" like below:
- name: Process removal list
ansible.builtin.apt:
name: "{{ unneeded_packages }}"
state: absent
Hi
For ubuntu22, ubuntu18, redhat9, redhat8, redhat7 the task
Process removal list
tries to uninstall the unneeded_packages package instead of the packages listed in the unneeded_packages variableto fix the issue replace unneeded_packages with
"{{ unneeded_packages }}"
like below: