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

Add debug task to check the auditd config file content #7

Merged
merged 2 commits into from
Jan 31, 2024
Merged
Changes from 1 commit
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 roles/cis_security/tasks/type-files/ubuntu-18-type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,22 @@
tags:
- 4.1.1.1

- name: 4.1.2.[1-2] - Get AuditD config
ansible.builtin.shell: cat /etc/audit/auditd.conf
vishalsingh48 marked this conversation as resolved.
Show resolved Hide resolved
register: auditd_conf
tags:
- 4.1.2.1
- 4.1.2.2
- 4.1.2.3

- name: 4.1.2.[1-2] - Print AuditD config
ansible.builtin.debug:
msg: "{{ auditd_conf.stdout | string }}"
tags:
- 4.1.2.1
- 4.1.2.2
- 4.1.2.3

- name: 4.1.1.2 - Enable auditd service
ansible.builtin.service:
name: auditd
Expand Down