ansible-lockdown / UBUNTU22-CIS

Ansible role for Ubuntu22 CIS Baseline
https://ansible-lockdown.readthedocs.io/en/latest/
MIT License
160 stars 70 forks source link

Wrong conditional, easy fix #121

Closed ipruteanu-sie closed 8 months ago

ipruteanu-sie commented 9 months ago

Describe the Issue Wrong conditional.

Expected Behavior A clear and concise description of what you expected to happen. IPv6 forwarding should be disabled when ipv6 is not required

      - name: "3.2.2 | PATCH | Ensure IP forwarding is disabled | IPv6 settings"
        when:  not ubtu22cis_ipv6_required

Actual Behavior IPv6 forwarding is disabled when ipv6 is required

      - name: "3.2.2 | PATCH | Ensure IP forwarding is disabled | IPv6 settings"
        when: ubtu22cis_ipv6_required

Control(s) Affected 3.2.2 Ensure IP forwarding is disabled

Environment (please complete the following information):

Additional Notes Anything additional goes here

Possible Solution I'll provide a PR.