Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweaks #269

Merged
merged 2 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions tasks/prelim.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
---

- name: PRELIM | AUDIT | Set default values for facts
ansible.builtin.set_fact:
control_1_6_1_4_was_run: false
ubtu22cis_apparmor_enforce_only: false
changed_when: false

- name: PRELIM | AUDIT | Register if snap being used
when: ubtu22cis_rule_1_1_1_6
tags:
Expand Down
6 changes: 2 additions & 4 deletions tasks/section_3/cis_3.3.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
state: present
reload: true
ignoreerrors: true
notify:
- Flush ipv4 route table
notify: Flush ipv4 route table

- name: "3.3.1 | PATCH | Ensure IP forwarding is disabled | IPv6 settings"
when: ubtu22cis_ipv6_disable == 'sysctl'
Expand All @@ -39,8 +38,7 @@
state: present
reload: true
ignoreerrors: true
notify:
- Flush ipv6 route table
notify: Flush ipv6 route table

- name: "3.3.2 | PATCH | Ensure packet redirect sending is disabled"
when:
Expand Down
5 changes: 5 additions & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
min_ansible_version: 2.12.1
# Set default value for reboot value
change_requires_reboot: false

# Apparmor default settings
control_1_3_1_4_was_run: false
ubtu22cis_apparmor_enforce_only: false

# The role discovers dynamically (in tasks/main.yml) whether it
# is executed on a container image and sets the variable
# system_is_container the true. Otherwise, the default value
Expand Down