Skip to content

Commit

Permalink
Merge pull request #9 from ansible-lockdown/lint
Browse files Browse the repository at this point in the history
linting
  • Loading branch information
uk-bolly authored Apr 27, 2022
2 parents 8361791 + 91600af commit 33cfc54
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
when:
- rhel9cis_set_boot_pass
- rhel9cis_rule_1_4_1
tags:
tags:
- always

- name: "check sugroup exists if used"
Expand Down
2 changes: 1 addition & 1 deletion tasks/section_3/cis_3.4.1.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
package:
name: iptables-services
state: absent
when:
when:
when:
- rhel9cis_rule_3_4_1_2
- "'iptables-services' in ansible_facts.packages"
Expand Down
1 change: 0 additions & 1 deletion tasks/section_3/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@
include_tasks: cis_3.4.2.x.yml
when:
- rhel9cis_firewall == "nftables"

10 changes: 5 additions & 5 deletions tasks/section_4/cis_4.3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

- name: "4.3.1 | PATCH | Ensure logrotate is installed"
package:
name: rsyslog-logrotate
state: present
name: rsyslog-logrotate
state: present
when:
- rhel9cis_rule_4_3_1
tags:
Expand All @@ -16,9 +16,9 @@

- name: "4.3.2 | PATCH | Ensure logrotate is running and enabled"
systemd:
name: logrotate
state: started
enabled: true
name: logrotate
state: started
enabled: true
when:
- rhel9cis_rule_4_3_2
tags:
Expand Down

0 comments on commit 33cfc54

Please sign in to comment.