diff --git a/tasks/main.yml b/tasks/main.yml index 30c07ef..16f37a2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -121,11 +121,8 @@ ansible.builtin.command: cmd: aide --update register: __aide_update_result - failed_when: __msg not in __aide_update_result.stdout - changed_when: true - vars: - __msg: >- - AIDE found NO differences between database and filesystem. Looks okay!! + changed_when: __aide_update_result.rc > 1 and __aide_update_result.rc <= 7 + failed_when: __aide_update_result.rc >= 14 - name: Fetch AIDE database ansible.builtin.fetch: