committed by
Sergei Petrosian
parent
24f5af0f92
commit
e9ddf8804c
+6
-2
@@ -110,11 +110,15 @@
|
||||
path: /etc/crontab
|
||||
regexp: "^.* root /usr/sbin/aide --check"
|
||||
line: "{{ aide_cron_interval }} root /usr/sbin/aide --check"
|
||||
when: aide_cron_check | bool
|
||||
when:
|
||||
- aide_cron_check is not none
|
||||
- aide_cron_check | bool
|
||||
|
||||
- name: Remove aide check cron configuration if necessary
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/crontab
|
||||
state: absent
|
||||
regexp: "^.* root /usr/sbin/aide --check"
|
||||
when: not aide_cron_check | bool
|
||||
when:
|
||||
- aide_cron_check is not none
|
||||
- not aide_cron_check | bool
|
||||
|
||||
Reference in New Issue
Block a user