Skip to content

Commit a04287c

Browse files
authored
Merge pull request #201 from ansible-lockdown/devel
Version 1.0.2 updates - Minor fixes Signed-off-by: George Nalen <[email protected]>
2 parents 6624ce4 + a2fd1bd commit a04287c

File tree

6 files changed

+18
-19
lines changed

6 files changed

+18
-19
lines changed

ChangeLog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,18 @@
88
- Adding of the goss module to the library path
99

1010
## Whats new 1.0.1
11+
1112
- Fixed typos
1213
- Added audit output file permissions
1314

15+
## Whats new in 1.0.2
16+
17+
- renamed goss library and aligned ansible.cfg file
18+
- thanks to Thulium-Drake
19+
20+
- selinux variable in defaults main - default enforcing
21+
- 1.7.1.3-5 now idempotent
22+
1423
## High level changes within tasks
1524

1625
- Python3 now default for control node (should be backward compatible in setup)

ansible.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ deprecation_warnings=False
66
command_warnings=False
77
nocows=1
88
retry_files_save_path=/dev/null
9-
library=~/.ansible/plugins/modules:/usr/share/ansible/plugins/modules:./..
9+
library=~/.ansible/plugins/modules:/usr/share/ansible/plugins/modules:./library
1010

1111
[privilege_escalation]
1212

@@ -22,4 +22,4 @@ transfer_method=scp
2222

2323
[colors]
2424

25-
[diff]
25+
[diff]

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ rhel7cis_run_audit: false
3131

3232
# Enable/Disable SELinux
3333
rhel7cis_selinux_disable: false
34+
rhel7cis_selinux_state: enforcing
3435

3536
# Misc. environment variables
3637
rhel7cis_skip_for_travis: false
File renamed without changes.

tasks/section_1/cis_1.7.x.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,35 +31,22 @@
3131
- patch
3232
- rule_1.7.1.2
3333

34-
- name: "AUTOMATED | 1.7.1.3 | PATCH | Ensure SELinux policy is configured"
34+
- name: "AUTOMATED | 1.7.1.3 | PATCH | Ensure SELinux policy is configured\n
35+
AUTOMATED | 1.7.1.4 | PATCH | Ensure the SELinux state is enforcing or permissive"
3536
selinux:
3637
conf: /etc/selinux/config
3738
policy: "{{ rhel7cis_selinux_pol }}"
38-
state: permissive
39+
state: "{{ rhel7cis_selinux_state }}"
3940
when:
4041
- not rhel7cis_selinux_disable
4142
- rhel7cis_rule_1_7_1_3
42-
tags:
43-
- level1
44-
- AUTOMATED
45-
- selinux
46-
- patch
47-
- rule_1.7.1.3
48-
49-
- name: "AUTOMATED | 1.7.1.4 | PATCH | Ensure the SELinux state is enforcing or permissive"
50-
selinux:
51-
conf: /etc/selinux/config
52-
policy: "{{ rhel7cis_selinux_pol }}"
53-
state: permissive
54-
when:
55-
- not rhel7cis_selinux_disable
56-
- not rhel7cis_rule_1_7_1_5
5743
- rhel7cis_rule_1_7_1_4
5844
tags:
5945
- level1
6046
- AUTOMATED
6147
- selinux
6248
- patch
49+
- rule_1.7.1.3
6350
- rule_1.7.1.4
6451

6552
- name: "AUTOMATED | 1.7.1.5 | PATCH | Ensure the SELinux state is enforcing"
@@ -69,6 +56,7 @@
6956
state: enforcing
7057
when:
7158
- not rhel7cis_selinux_disable
59+
- not rhel7cis_selinux_state == "permissive"
7260
- rhel7cis_rule_1_7_1_5
7361
tags:
7462
- level2

templates/ansible_vars_goss.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ rhel7cis_section5: {{ rhel7cis_section5 }}
88
rhel7cis_section6: {{ rhel7cis_section6 }}
99

1010
rhel7cis_selinux_disable: {{ rhel7cis_selinux_disable }}
11+
rhel7cis_selinux_state: {{ rhel7cis_selinux_state }}
1112

1213

1314
rhel7cis_level1: true

0 commit comments

Comments
 (0)