diff --git a/tasks/main.yml b/tasks/main.yml index bcad966..2566696 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -157,7 +157,7 @@ enabled: true when: - network_provider == "nm" or network_state != {} - no_log: true + no_log: "{{ ansible_verbosity < 3 }}" # If any 802.1x connections are used, the wpa_supplicant # service is required to be running @@ -176,7 +176,7 @@ enabled: true when: - network_provider == "initscripts" - no_log: true + no_log: "{{ ansible_verbosity < 3 }}" - name: Ensure initscripts network file dependency is present copy: diff --git a/tasks/set_facts.yml b/tasks/set_facts.yml index 6ad4e40..35a998d 100644 --- a/tasks/set_facts.yml +++ b/tasks/set_facts.yml @@ -5,7 +5,7 @@ gather_subset: "{{ __network_required_facts_subsets }}" when: __network_required_facts | difference(ansible_facts.keys() | list) | length > 0 - no_log: true + no_log: "{{ ansible_verbosity < 3 }}" - name: Record role begin fingerprint sr_fingerprint: @@ -27,9 +27,9 @@ - name: Check which services are running service_facts: - no_log: true + no_log: "{{ ansible_verbosity < 3 }}" # needed for ansible_facts.packages - name: Check which packages are installed package_facts: - no_log: true + no_log: "{{ ansible_verbosity < 3 }}"