15 lines
261 B
YAML
15 lines
261 B
YAML
|
---
|
||
|
- name: Install audit
|
||
|
ansible.builtin.apt:
|
||
|
name: auditd
|
||
|
state: latest
|
||
|
notify:
|
||
|
- Start auditd
|
||
|
- Enable auditd
|
||
|
|
||
|
- name: Add rules
|
||
|
ansible.builtin.copy:
|
||
|
src: 'custom.rules'
|
||
|
dest: '/etc/audit/rules.d/custom.rules'
|
||
|
mode: "0640"
|