From aadd117d0170f49f432911e17e28331ed4877ab5 Mon Sep 17 00:00:00 2001 From: Marko Zivanovic Date: Mon, 27 Jul 2026 20:32:10 +0200 Subject: [PATCH] Refine AIDE update command error handling based on return codes --- tasks/main.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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: