Skip to content

Commit

Permalink
fixes regex catching the trailing quote
Browse files Browse the repository at this point in the history
Signed-off-by: Dan D <[email protected]>
  • Loading branch information
dderemiah committed Oct 4, 2023
1 parent 9f524be commit f3d3189
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/section_1/cis_1.6.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
regexp: "{{ item.regexp }}"
replace: "{{ item.replace }}"
with_items:
- { regexp: 'apparmor=\S+', replace: 'apparmor=1' }
- { regexp: 'security=\S+', replace: 'security=apparmor' }
- { regexp: 'apparmor=\w+', replace: 'apparmor=1' }
- { regexp: 'security=\w+', replace: 'security=apparmor' }
when:
- "'apparmor' in ubtu22cis_1_6_1_2_cmdline_settings.stdout"
- "'security' in ubtu22cis_1_6_1_2_cmdline_settings.stdout"
Expand Down

0 comments on commit f3d3189

Please sign in to comment.