From 86a14fdc78963e223ca9a2012110fe407f3fb9ea Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Mon, 14 Apr 2025 11:53:22 +0100 Subject: [PATCH 1/2] updated fetch default settings and tidy Signed-off-by: Mark Bolwell --- defaults/main.yml | 3 ++- tasks/main.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 19015b6..3aa2b41 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -107,7 +107,8 @@ audit_conf_dest: "/opt" audit_log_dir: '/opt' # Method of getting,uploading the summary files -## Ensure access and permissions are avaiable for these to occur. +fetch_audit_output: false +## Ensure access and permissions are available for these to occur. ## options are # fetch - fetches from server and moves to location on the ansible controller (could be a mount point available to controller) # copy - copies file to a location available to the managed node diff --git a/tasks/main.yml b/tasks/main.yml index e1188b2..0ec9843 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -202,6 +202,7 @@ tags: always ansible.builtin.import_tasks: file: fetch_audit_output.yml + - name: Show Audit Summary when: run_audit tags: run_audit From b4239f6aefd344b7c531d6c0b19f35506ae29a3d Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Mon, 14 Apr 2025 11:55:35 +0100 Subject: [PATCH 2/2] improve notes for fetch Signed-off-by: Mark Bolwell --- defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/defaults/main.yml b/defaults/main.yml index 3aa2b41..e1888b0 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -107,6 +107,7 @@ audit_conf_dest: "/opt" audit_log_dir: '/opt' # Method of getting,uploading the summary files +## Enable the collection of audit files fetch_audit_output: false ## Ensure access and permissions are available for these to occur. ## options are