diff --git a/lib/ansible/plugins/terminal/ios.py b/lib/ansible/plugins/terminal/ios.py index f91e61f5f3a..2bb29fbaaf0 100644 --- a/lib/ansible/plugins/terminal/ios.py +++ b/lib/ansible/plugins/terminal/ios.py @@ -61,6 +61,10 @@ class TerminalModule(TerminalBase): try: self._exec_cli_command(b'terminal width 512') + try: + self._exec_cli_command(b'terminal width 0') + except AnsibleConnectionFailure: + pass except AnsibleConnectionFailure: display.display('WARNING: Unable to set terminal width, command responses may be truncated')