Skip to content

Commit

Permalink
Merge pull request #269 from ansible-lockdown/tweaks
Browse files Browse the repository at this point in the history
Tweaks
  • Loading branch information
uk-bolly authored Jan 6, 2025
2 parents d162c7a + 4c0ffab commit b52b2dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
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

0 comments on commit b52b2dc

Please sign in to comment.