tasks: rhel7stig: aide: Use 'aide -i' if 'aideinit' is not available
aideinit seems to be an Ubuntu wrapper, so use 'aide -i' if the former
is not available.
Closes-Bug: 1700524
Change-Id: If6274fbc7f322432556f65a033d762ec9b04e9ea
(cherry picked from commit d996c60ca7
)
This commit is contained in:
parent
f9299c5973
commit
248640b8d3
|
@ -71,7 +71,8 @@
|
|||
- always
|
||||
|
||||
- name: Initialize AIDE (this will take a few minutes)
|
||||
command: "aideinit"
|
||||
# NOTE(hwoarang): aideinit is an Ubuntu wrapper.
|
||||
shell: "if test -x /usr/sbin/aideinit; then aideinit; else aide -i; fi"
|
||||
changed_when: false
|
||||
register: aide_init
|
||||
when:
|
||||
|
|
Loading…
Reference in New Issue