# disable unnecessary output on ansible server console

**URL:** <https://forum.ansible.com/t/disable-unnecessary-output-on-ansible-server-console/25279>\
**Category:** Ansible Project\
**Created:** [August 17, 2017, 2:13pm UTC](https://forum.ansible.com/t/disable-unnecessary-output-on-ansible-server-console/25279 "2017-08-17T14:13:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Modak](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sameer_modak/32/5180_2.png) [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Post date:** [August 17, 2017, 2:13pm UTC](https://forum.ansible.com/t/disable-unnecessary-output-on-ansible-server-console/25279/1 "2017-08-17T14:13:25Z")

</div>

Hello Team,  
When i run following command i get log of output on screen. I just want if it success or failed.

ansible web -m yum -a “name=MySQL-python state=present”.

192.168.211.129 | SUCCESS =\> {  
“changed”: true,  
“msg”: “”,  
“rc”: 0,  
“results”: [  
“Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\nResolving Dependencies\n → Running transaction check\n—\> Package MySQL-python.x86\_64 0:1.2.3-11.el7 will be installed\n → Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n MySQL-python x86\_64 1.2.3-11.el7 basic 82 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package\n\nTotal download size: 82 k\nInstalled size: 231 k\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : MySQL-python-1.2.3-11.el7.x86\_64 1/1 \n Verifying : MySQL-python-1.2.3-11.el7.x86\_64 1/1 \n\nInstalled:\n MySQL-python.x86\_64 0:1.2.3-11.el7 \n\nComplete!\n”  
]  
}  
192.168.211.130 | SUCCESS =\> {  
“changed”: true,  
“msg”: “”,  
“rc”: 0,  
“results”: [  
“Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\nResolving Dependencies\n → Running transaction check\n—\> Package MySQL-python.x86\_64 0:1.2.3-11.el7 will be installed\n → Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n MySQL-python x86\_64 1.2.3-11.el7 basic 82 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package\n\nTotal download size: 82 k\nInstalled size: 231 k\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : MySQL-python-1.2.3-11.el7.x86\_64 1/1 \n Verifying : MySQL-python-1.2.3-11.el7.x86\_64 1/1 \n\nInstalled:\n MySQL-python.x86\_64 0:1.2.3-11.el7 \n\nComplete!\n”  
]  
}  
[root@hackerdev ansible]# ansible web -m yum -a "name=MySQL-pytho

---

<div class="post-metadata">

**Author:** ![Mike\_Klebolt](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike\_Klebolt](https://forum.ansible.com/u/Mike_Klebolt)\
**Post date:** [August 17, 2017, 7:56pm UTC](https://forum.ansible.com/t/disable-unnecessary-output-on-ansible-server-console/25279/2 "2017-08-17T19:56:39Z")

</div>

What do you have in your ansible.cfg for stdout\_callback?

---

<div class="post-metadata">

**Author:** ![Sameer\_Modak](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sameer_modak/32/5180_2.png) [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Post date:** [August 18, 2017, 3:25pm UTC](https://forum.ansible.com/t/disable-unnecessary-output-on-ansible-server-console/25279/3 "2017-08-18T15:25:08Z")

</div>

No its all commented

[root@hackerdev 6.2]# grep callback /etc/ansible/ansible.cfg

# change the default callback

#stdout\_callback = skippy

# enable additional callbacks

#callback\_whitelist = timer, mail  
#callback\_plugins = /usr/share/ansible/plugins/callback

# by default callbacks are not loaded for /bin/ansible, enable this if you

# want, for example, a notification or logging callback to also apply to

#bin\_ansible\_callbacks = False  
[root@hackerdev 6.2]# grep stdout /etc/ansible/ansible.cfg  
#stdout\_callback = skippy

# stdout from ansible-playbook (or you have manually specified no\_log in your

#display\_args\_to\_stdout = False  
[root@hackerdev 6.2]#

---

<div class="post-metadata">

**Author:** ![Mike\_Klebolt](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike\_Klebolt](https://forum.ansible.com/u/Mike_Klebolt)\
**Post date:** [August 21, 2017, 1:41pm UTC](https://forum.ansible.com/t/disable-unnecessary-output-on-ansible-server-console/25279/4 "2017-08-21T13:41:56Z")

</div>

Uncomment the stdout\_callback line. The Skippy callback plugin gives pretty clean output.

---

<div class="post-metadata">

**Author:** ![Sameer\_Modak](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sameer_modak/32/5180_2.png) [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Post date:** [August 21, 2017, 3:30pm UTC](https://forum.ansible.com/t/disable-unnecessary-output-on-ansible-server-console/25279/5 "2017-08-21T15:30:36Z")

</div>

Thnks mike.
