From d996c60ca71f850d3a4b3e6f813e9b276104cfed Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Mon, 26 Jun 2017 13:06:06 +0100 Subject: [PATCH] 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 --- tasks/rhel7stig/aide.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/rhel7stig/aide.yml b/tasks/rhel7stig/aide.yml index 8fd0b12a..3dd809ae 100644 --- a/tasks/rhel7stig/aide.yml +++ b/tasks/rhel7stig/aide.yml @@ -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: