ansible-lockdown / RHEL9-CIS

Ansible role for Red Hat 9 CIS Baseline
https://ansible-lockdown.readthedocs.io
MIT License
119 stars 91 forks source link

2.3.4 - Ensure FTP client is not installed - wrong conditional #137

Closed ipruteanu-sie closed 4 months ago

ipruteanu-sie commented 10 months ago

Describe the Issue wrong variable used for 2.3.4.

Expected Behavior(rhel9cis_FTP_client)

- name: "2.3.4 | PATCH | Ensure FTP client is not installed"
  ansible.builtin.package:
      name: ftp
      state: absent
  when:
      - not rhel9cis_ftp_client
      - "'ftp' in ansible_facts.packages"
      - rhel9cis_rule_2_3_4

Actual Behavior(rhel9cis_TFTP_client)

- name: "2.3.4 | PATCH | Ensure FTP client is not installed"
  ansible.builtin.package:
      name: ftp
      state: absent
  when:
      - not rhel9cis_tftp_client
      - "'ftp' in ansible_facts.packages"
      - rhel9cis_rule_2_3_4

Control(s) Affected 2.3.4.

Environment (please complete the following information):

Possible Solution PR afterwards.

uk-bolly commented 4 months ago

hi @ipruteanu-sie

This Issue has been merged to devel and into main branch. I will therefore close this issue. Please feel free to reopen if you feel its not as expected.

Many thanks again for your time

uk-bolly