Fix suggestions

Signed-off-by: Radovan Sroka <rsroka@redhat.com>
This commit is contained in:
Radovan Sroka
2025-01-07 13:06:03 +01:00
committed by Sergei Petrosian
parent 24f5af0f92
commit e9ddf8804c
5 changed files with 41 additions and 11 deletions
+6 -2
View File
@@ -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