hac/ansible/roles/auditd/tasks/main.yml
Ada 2410885737
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add knot roles
2024-03-24 22:12:56 +01:00

24 lines
480 B
YAML
Executable file

---
- name: Install audit
ansible.builtin.apt:
name: auditd
state: latest
notify:
- Start auditd
- Enable auditd
when: ansible_facts['os_family'] == "Debian"
- name: Install audit
ansible.builtin.dnf:
name: audit
state: latest
notify:
- Start auditd
- Enable auditd
when: ansible_facts['os_family'] == "RedHat"
- name: Add rules
ansible.builtin.copy:
src: custom.rules
dest: /etc/audit/rules.d/custom.rules
mode: "0640"