2022-11-22 15:30:41 +01:00
|
|
|
---
|
|
|
|
# tasks file for auditd
|
|
|
|
|
2023-01-13 18:01:41 +01:00
|
|
|
- ansible.builtin.debug:
|
|
|
|
msg: "ENABLED = {{ auditd_enabled }}; auditd role"
|
|
|
|
|
|
|
|
- when:
|
2023-01-11 17:44:16 +01:00
|
|
|
- 'auditd_enabled is true'
|
|
|
|
- "'global.update_only' not in ansible_run_tags"
|
2022-11-22 15:30:41 +01:00
|
|
|
block:
|
|
|
|
- name: Install auditd
|
|
|
|
ansible.builtin.package:
|
|
|
|
name: auditd
|
|
|
|
|
|
|
|
- name: Create directory tree if not exists
|
|
|
|
include_tasks: install_rules.yml
|
|
|
|
loop: '{{ auditd_rules }}'
|