Skip to content
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

(feature) [COTEF1901-104] Improved test 1.6.4 (coredump.conf) #12

Merged
merged 2 commits into from
Jan 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions tasks/section_1_Initial_Setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,22 @@
apt:
name: systemd-coredump
state: present
- name: 1.6.4 Ensure core dumps are restricted
lineinfile:
dest: /etc/systemd/coredump.conf
line: "Storage=none"
regexp: '(^#)?\s*Storage\s*='
state: present
create: true
insertbefore: "# End of file"
- name: 1.6.4 Ensure core dumps are restricted
lineinfile:
dest: /etc/systemd/coredump.conf
line: "ProcessSizeMax=0"
regexp: '(^#)?\s*ProcessSizeMax\s*='
state: present
create: true
insertbefore: "# End of file"
- name: 1.6.4 Ensure core dumps are restricted | reload
shell: systemctl daemon-reload
tags:
Expand Down