Skip to content

Commit

Permalink
Merge pull request #201 from ansible-lockdown/devel
Browse files Browse the repository at this point in the history
Version 1.0.2 updates - Minor fixes
Signed-off-by: George Nalen <georgen@mindpointgroup.com>
  • Loading branch information
georgenalen authored Mar 31, 2021
2 parents 6624ce4 + a2fd1bd commit a04287c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
9 changes: 9 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,18 @@
- Adding of the goss module to the library path

## Whats new 1.0.1

- Fixed typos
- Added audit output file permissions

## Whats new in 1.0.2

- renamed goss library and aligned ansible.cfg file
- thanks to Thulium-Drake

- selinux variable in defaults main - default enforcing
- 1.7.1.3-5 now idempotent

## High level changes within tasks

- Python3 now default for control node (should be backward compatible in setup)
Expand Down
4 changes: 2 additions & 2 deletions ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ deprecation_warnings=False
command_warnings=False
nocows=1
retry_files_save_path=/dev/null
library=~/.ansible/plugins/modules:/usr/share/ansible/plugins/modules:./..
library=~/.ansible/plugins/modules:/usr/share/ansible/plugins/modules:./library

[privilege_escalation]

Expand All @@ -22,4 +22,4 @@ transfer_method=scp

[colors]

[diff]
[diff]
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ rhel7cis_run_audit: false

# Enable/Disable SELinux
rhel7cis_selinux_disable: false
rhel7cis_selinux_state: enforcing

# Misc. environment variables
rhel7cis_skip_for_travis: false
Expand Down
File renamed without changes.
22 changes: 5 additions & 17 deletions tasks/section_1/cis_1.7.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,35 +31,22 @@
- patch
- rule_1.7.1.2

- name: "AUTOMATED | 1.7.1.3 | PATCH | Ensure SELinux policy is configured"
- name: "AUTOMATED | 1.7.1.3 | PATCH | Ensure SELinux policy is configured\n
AUTOMATED | 1.7.1.4 | PATCH | Ensure the SELinux state is enforcing or permissive"
selinux:
conf: /etc/selinux/config
policy: "{{ rhel7cis_selinux_pol }}"
state: permissive
state: "{{ rhel7cis_selinux_state }}"
when:
- not rhel7cis_selinux_disable
- rhel7cis_rule_1_7_1_3
tags:
- level1
- AUTOMATED
- selinux
- patch
- rule_1.7.1.3

- name: "AUTOMATED | 1.7.1.4 | PATCH | Ensure the SELinux state is enforcing or permissive"
selinux:
conf: /etc/selinux/config
policy: "{{ rhel7cis_selinux_pol }}"
state: permissive
when:
- not rhel7cis_selinux_disable
- not rhel7cis_rule_1_7_1_5
- rhel7cis_rule_1_7_1_4
tags:
- level1
- AUTOMATED
- selinux
- patch
- rule_1.7.1.3
- rule_1.7.1.4

- name: "AUTOMATED | 1.7.1.5 | PATCH | Ensure the SELinux state is enforcing"
Expand All @@ -69,6 +56,7 @@
state: enforcing
when:
- not rhel7cis_selinux_disable
- not rhel7cis_selinux_state == "permissive"
- rhel7cis_rule_1_7_1_5
tags:
- level2
Expand Down
1 change: 1 addition & 0 deletions templates/ansible_vars_goss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ rhel7cis_section5: {{ rhel7cis_section5 }}
rhel7cis_section6: {{ rhel7cis_section6 }}

rhel7cis_selinux_disable: {{ rhel7cis_selinux_disable }}
rhel7cis_selinux_state: {{ rhel7cis_selinux_state }}


rhel7cis_level1: true
Expand Down

0 comments on commit a04287c

Please sign in to comment.