only init database if run mode
This commit is contained in:
committed by
Richard Megginson
parent
0504d2d5af
commit
4716624228
+3
-1
@@ -49,7 +49,9 @@
|
||||
# ansible.builtin.command: head /etc/aide.conf || true
|
||||
|
||||
- name: Initialize AIDE database
|
||||
when: aide_init | bool
|
||||
when:
|
||||
- not ansible_check_mode
|
||||
- aide_init | bool
|
||||
block:
|
||||
- name: Initialize AIDE database
|
||||
ansible.builtin.command:
|
||||
|
||||
Reference in New Issue
Block a user