From e1488ab4456a1bd9434a7b7a4e1a2c8a7ee4716c Mon Sep 17 00:00:00 2001 From: Sergei Petrosian Date: Thu, 7 May 2026 15:20:44 +0200 Subject: [PATCH] fix: add verbosity-based no_log to facts modules - Add no_log: "{{ ansible_verbosity < 2 }}" to package_facts and service_facts This hides verbose facts output unless ansible_verbosity >= 2, reducing log clutter during normal operation while allowing full output when debugging with -vv or higher. Co-Authored-By: Claude Sonnet 4.5 --- tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 3a96986..6ae822f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -4,6 +4,7 @@ - name: Populate service facts service_facts: + no_log: "{{ ansible_verbosity < 2 }}" when: __timesync_is_booted | d(false) - name: Set variable `timesync_services` with filtered uniq service names @@ -137,6 +138,7 @@ - name: Gather package facts package_facts: manager: auto + no_log: "{{ ansible_verbosity < 2 }}" - name: Run phc_ctl on PTP interface command: phc_ctl -q {{ timesync_ptp_domains[0].interfaces[0] | quote }}