dsglaser / cis-security

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)
Other
90 stars 63 forks source link

Misused variable #80

Closed szilard9554 closed 1 year ago

szilard9554 commented 1 year ago

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 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
dsglaser commented 1 year ago

This has been committed up to the dev branch and it should be making itself into master in the next day or two.

Thanks!