Skip to content

Commit

Permalink
Only show stderr_lines by default
Browse files Browse the repository at this point in the history
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 <kristof.wevers@infura.eu>
  • Loading branch information
kwevers authored and cathay4t committed Jun 10, 2021
1 parent b368bce commit 85b75b6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

0 comments on commit 85b75b6

Please sign in to comment.