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
This commit is contained in:
Markos Chandras 2017-06-26 13:06:06 +01:00
parent 1a02653708
commit d996c60ca7
1 changed files with 2 additions and 1 deletions

View File

@ -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: