mirror of
https://github.com/nikdoof/ansible-cis.git
synced 2025-12-18 12:29:24 +00:00
Add the ability to exclude folders in AIDE
This commit is contained in:
@@ -11,6 +11,19 @@
|
||||
async: 300
|
||||
poll: 0
|
||||
|
||||
- name: Add excluded folders to AIDE, if defined
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/aide.conf.d/98_aide_exclusions
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rw,go=r
|
||||
content: |
|
||||
{% for directory in cis_aide_excluded_directories %}
|
||||
!{{ directory }}
|
||||
{% endfor %}
|
||||
when:
|
||||
- cis_aide_excluded_directories is defined
|
||||
|
||||
- name: Install AIDE crontab
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/cron.d/aide
|
||||
|
||||
Reference in New Issue
Block a user