Compare commits

...

4 Commits

Author SHA1 Message Date
rronneburger e7d62e81e1
Merge fe8c656c3c into f90b698a57 2025-04-15 15:39:49 -05:00
George Nalen f90b698a57
Merge pull request #36 from ansible-lockdown/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-04-15 14:39:47 -05:00
pre-commit-ci[bot] f3f3622ae8
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/gitleaks/gitleaks: v8.24.2 → v8.24.3](https://github.com/gitleaks/gitleaks/compare/v8.24.2...v8.24.3)
2025-04-14 17:22:18 +00:00
Ralf Ronneburger fe8c656c3c make sure audit_log_dir exists, make sure shell_session_file does not contain readonly twice (leading to error messages upon login) 2025-02-28 18:09:13 +01:00
3 changed files with 22 additions and 1 deletions

View File

@ -41,7 +41,7 @@ repos:
- id: detect-secrets
- repo: https://github.com/gitleaks/gitleaks
rev: v8.24.2
rev: v8.24.3
hooks:
- id: gitleaks

View File

@ -12,6 +12,12 @@
mode: 'go-w'
state: directory
- name: Pre Audit Setup | Ensure existence of {{ audit_log_dir }}
ansible.builtin.file:
path: "{{ audit_log_dir }}"
mode: 'go-w'
state: directory
- name: Pre Audit Setup | If using git for content set up
when: audit_content == 'git'
block:

View File

@ -19,6 +19,21 @@
regexp: nologin
replace: ""
- name: "5.4.3.2 | PATCH | Remove old content from {{ ubtu24cis_shell_session_file }} before adding new lines"
when:
- ubtu24cis_rule_5_4_3_2
tags:
- level1-server
- level1-workstation
- patch
- shell
- rule_5.4.3.2
- NIST800-53R5_NA
ansible.builtin.replace:
path: "{{ ubtu24cis_shell_session_file }}"
regexp: '# Logout Timeout\nexport TMOUT=0\nreadonly TMOUT\n'
replace: '# Logout Timeout\n'
- name: "5.4.3.2 | PATCH | Ensure default user shell timeout is configured"
when:
- ubtu24cis_rule_5_4_3_2