Ansible 2.8 ios_command module failing with error: "unable to set terminal parameters"
AkilaZutshi opened this issue · 1 comments
AkilaZutshi commented
Ansible playbook using ios_command module to run show_version command for a cisco switch fails with below error:-
"msg": "unable to set terminal parameters"
Playbook snippet:-
- hosts: CISCO
gather_facts: False
tasks:
- name: Check cisco version
ios_command:
commands: show version
vgrigorian commented
Hi, try to set up in configuration mode these two commands:
privilege exec level 0 terminal width
privilege exec level 0 terminal length
And rerun your playbook.