From 8ccd174d8d41a74930aad856578b8c1755060f01 Mon Sep 17 00:00:00 2001 From: Danny Brody Date: Tue, 16 Jul 2024 10:59:03 -0700 Subject: [PATCH] ability to supress the package logging facts Signed-off-by: Danny Brody --- defaults/main.yml | 4 ++++ tasks/main.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 34407a9..da8b8b6 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1234,3 +1234,7 @@ audit_run_script_environment: AUDIT_BIN: "{{ audit_bin }}" AUDIT_FILE: 'goss.yml' AUDIT_CONTENT_LOCATION: "{{ audit_out_dir }}" + +#### Logging Configuration Settings #### +# Set to true in order to supress the various tasks from logging +suppress_package_facts_logging: false diff --git a/tasks/main.yml b/tasks/main.yml index ef6a464..e75ce3e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -82,6 +82,7 @@ - name: Gather the package facts ansible.builtin.package_facts: manager: auto + no_log: suppress_package_facts_logging tags: - always