From 342489f4d9b66a4e13cf11f55ea2f44cf3ea1855 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Tue, 10 Dec 2024 12:07:14 +0000 Subject: [PATCH] lint update Signed-off-by: Mark Bolwell --- tasks/section_6/cis_6.3.x.yml | 6 +++--- vars/main.yml | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tasks/section_6/cis_6.3.x.yml b/tasks/section_6/cis_6.3.x.yml index 4b8c54d..5196055 100644 --- a/tasks/section_6/cis_6.3.x.yml +++ b/tasks/section_6/cis_6.3.x.yml @@ -52,9 +52,9 @@ state: absent - name: "6.3.1 | PATCH | Ensure AIDE is installed | Configure AIDE" - when: - - not ansible_check_mode - ansible.builtin.shell: "{{ aide_initiate_command }}" + when: not ansible_check_mode + ansible.builtin.command: "{{ aide_initiate_command }}" + changed_when: true args: creates: "{{ ubtu24cis_aide_db_file }}" async: "{{ ubtu24cis_aide_init_async }}" diff --git a/vars/main.yml b/vars/main.yml index fa065e8..0ef07c0 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -13,7 +13,6 @@ system_is_container: false warn_control_list: "" warn_count: 0 - # Aide initiate command for new DB creation aide_initiate_command: aideinit -y -f