-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Made some changes to CAT II #4
Changes from 1 commit
5600b67
cb80330
72cfb9b
3544356
5c66e01
45ac122
fd40aee
aed18a0
240e484
421d3d7
205ca42
cd83f09
47278c7
0a41091
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1440,9 +1440,9 @@ | |
|
||
- name: "MEDIUM | RHEL-07-040640 | PATCH | The SSH public host key files must have mode 0644 or less permissive." | ||
file: | ||
dest: "{{ item }}" | ||
mode: 0644 | ||
state: file | ||
dest: "{{ item }}" | ||
mode: 0644 | ||
state: file | ||
with_items: "{{ rhel_07_040640_audit.stdout_lines }}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use |
||
tags: | ||
- cat2 | ||
|
@@ -1452,10 +1452,10 @@ | |
|
||
- name: "MEDIUM | RHEL-07-040650 | PATCH | The SSH private host key files must have mode 0600 or less permissive." | ||
file: | ||
dest: "{{ item }}" | ||
mode: 0600 | ||
state: file | ||
with_items: "{{ rhel_07_040650_audit.stdout_lines }}" | ||
dest: "{{ item }}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use |
||
mode: 0600 | ||
state: file | ||
with_items: "{{ rhel_07_040650_audit.files | map(attribute='path') | list }}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use |
||
tags: | ||
- cat2 | ||
- medium | ||
|
@@ -1524,6 +1524,7 @@ | |
regexp: (?i)^#?compression | ||
line: Compression no | ||
validate: sshd -t -f %s | ||
ignore_errors: yes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why ignore errors for this task? |
||
notify: restart ssh | ||
tags: | ||
- cat2 | ||
|
@@ -1537,6 +1538,8 @@ | |
name: net.ipv4.ip_forward | ||
present: yes | ||
value: 0 | ||
ignore_errors: yes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the module parameter There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use |
||
when: not rhel7stig_system_is_router | ||
tags: | ||
- cat2 | ||
- medium | ||
|
@@ -1562,6 +1565,18 @@ | |
- RHEL-07-040810 | ||
- firewalld | ||
|
||
- name: "MEDIUM | RHEL-07-040810 | PATCH | The system must use a local firewall." | ||
service: | ||
name: firewalld | ||
state: started | ||
enabled: yes | ||
tags: | ||
- cat2 | ||
- medium | ||
- patch | ||
- RHEL-07-040810 | ||
- firewalld | ||
|
||
- name: "MEDIUM | RHEL-07-040820 | PATCH | The system's access control program must be configured to grant or deny system access to specific hosts and services." | ||
command: "true" | ||
tags: | ||
|
@@ -1583,6 +1598,7 @@ | |
name: net.ipv6.conf.all.accept_source_route | ||
present: yes | ||
value: 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed on each sysctl task. Getting ready to commit changes now. |
||
ignore_errors: yes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. Use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use |
||
tags: | ||
- cat2 | ||
- medium | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
item.path
.