# formatting IOS commands

**URL:** <https://forum.ansible.com/t/formatting-ios-commands/30763>\
**Category:** Ansible Project\
**Created:** [July 11, 2019, 7:23pm UTC](https://forum.ansible.com/t/formatting-ios-commands/30763 "2019-07-11T19:23:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pushparaj\_Gothandam](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pushparaj_gothandam/32/5538_2.png) [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Post date:** [July 11, 2019, 7:23pm UTC](https://forum.ansible.com/t/formatting-ios-commands/30763/1 "2019-07-11T19:23:13Z")

</div>

Hi Team,

I am collecting IOS commands in my playbook and I need output human readable , I use( to\_nice\_yaml(indent=8, width=1337) currently. Any other suggestions to view the output as human readable.

ios\_command:  
30 commands:  
31 - show switch detail  
32 - show module  
33 - show switch stack-ports  
34 - show switch stack-ports summary  
35 - show ip int brief  
36 - show interface description  
37 - show interface status  
38 - show etherchannel summary  
39 - show cdp neighbors  
40 - show env all  
41 - show run  
42 - show version

---

<div class="post-metadata">

**Author:** ![Pushparaj\_Gothandam](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pushparaj_gothandam/32/5538_2.png) [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Post date:** [July 23, 2019, 12:05pm UTC](https://forum.ansible.com/t/formatting-ios-commands/30763/2 "2019-07-23T12:05:35Z")

</div>

It has been fixed. you will get nice output by setting below options in configuration file.

STDOUT\_CALLBACK = yaml  
bin\_ansible\_callbacks = True

thanks
