From 85b75b6c8cca13f40fb356540bd8aa05d5ca820f Mon Sep 17 00:00:00 2001 From: Kristof Wevers Date: Tue, 1 Jun 2021 13:15:23 +0200 Subject: [PATCH] Only show stderr_lines by default This avoids dumping all the parameters which can cause rather lengthy output if multiple interfaces, routers, ... are configured. The previous behaviour where all the params etc were displayed can still be achieved by adding `-v` to the `ansible-playbook` command. Resolves: #394 Signed-off-by: Kristof Wevers --- tasks/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index dfc5481..4ed23d9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -87,8 +87,14 @@ __debug_flags: "{{ __network_debug_flags | default(omit) }}" register: __network_connections_result +- name: Show stderr messages + debug: + var: __network_connections_result.stderr_lines + - name: Show debug messages - debug: var=__network_connections_result + debug: + var: __network_connections_result + verbosity: 1 - name: Re-test connectivity ping: