hac/ansible/roles/auditd/tasks/main.yml
Ada c2b15b5eaa
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add upgrade playbook
2024-04-22 18:02:01 +02:00

24 lines
480 B
YAML

---
- 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"