From e88b3efbf05d3d6c3d7779a92ff0b7f2bc6eb34a Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Fri, 27 Jan 2023 11:13:33 +0000 Subject: [PATCH] Updated as per steps Signed-off-by: Mark Bolwell --- tasks/section_1/cis_1.3.x.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tasks/section_1/cis_1.3.x.yml b/tasks/section_1/cis_1.3.x.yml index cf20cb9..2c61fc8 100644 --- a/tasks/section_1/cis_1.3.x.yml +++ b/tasks/section_1/cis_1.3.x.yml @@ -7,15 +7,21 @@ name: aide state: present - - name: "1.3.1 | PATCH | Ensure AIDE is installed | Configure AIDE" - ansible.builtin.shell: /usr/sbin/aide --init -B 'database_out=file:/var/lib/aide/aide.db.gz' + - name: "1.3.1 | PATCH | Ensure AIDE is installed | Build AIDE DB" + ansible.builtin.shell: /usr/sbin/aide --init changed_when: false failed_when: false async: 45 poll: 0 args: - creates: /var/lib/aide/aide.db.gz + creates: /var/lib/aide/aide.db.new.gz when: not ansible_check_mode + + - name: "1.3.1 | PATCH | Ensure AIDE is installed | copy AIDE DB" + ansible.builtin.copy: + src: /var/lib/aide/aide.db.new.gz + dest: /var/lib/aide/aide.db.gz + remote_src: true when: - rhel9cis_config_aide - rhel9cis_rule_1_3_1