Skip to content

Commit

Permalink
Respect ipv6_disable mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
joshavant committed Jan 26, 2024
1 parent e1a80a7 commit 1d2fdb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tasks/section_3/cis_3.2.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
state: present
reload: true
ignoreerrors: true
when: ubtu22cis_ipv6_disable == 'sysctl'
notify:
- Flush ipv6 route table

Expand Down
2 changes: 2 additions & 0 deletions tasks/section_3/cis_3.3.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
state: present
reload: true
ignoreerrors: true
when: ubtu22cis_ipv6_disable == 'sysctl'
with_items:
- net.ipv6.conf.all.accept_source_route
- net.ipv6.conf.default.accept_source_route
Expand Down Expand Up @@ -66,6 +67,7 @@
state: present
reload: true
ignoreerrors: true
when: ubtu22cis_ipv6_disable == 'sysctl'
with_items:
- net.ipv6.conf.all.accept_redirects
- net.ipv6.conf.default.accept_redirects
Expand Down

0 comments on commit 1d2fdb6

Please sign in to comment.