how to disable paramiko log in ansible.log

17 views
Skip to first unread message

Leon Xie

unread,
Jan 30, 2018, 3:12:41 AM1/30/18
to Ansible Project
Hi all,

I am using ansible 2.4.2 as below:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@server]# ansible-playbook --version
ansible-playbook 2.4.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.6/site-packages/ansible
  executable location = /usr/bin/ansible-playbook
  python version = 2.6.6 (r266:84292, Aug  9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


when I run ansible-playbook command, I got a lot of paramiko logs in ansible log file as below:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2018-01-30 23:48:38,782 paramiko.transport Authentication (publickey) successful!
2018-01-30 23:48:38,785 paramiko.transport [chan 1] Max packet in: 34816 bytes
2018-01-30 23:48:38,785 paramiko.transport [chan 1] Max packet out: 32768 bytes
2018-01-30 23:48:38,786 paramiko.transport Secsh channel 1 opened.
2018-01-30 23:48:38,788 paramiko.transport [chan 1] Sesch channel 1 request ok
2018-01-30 23:48:38,793 paramiko.transport [chan 1] Max packet out: 32768 bytes
2018-01-30 23:48:38,793 paramiko.transport Secsh channel 1 opened.
2018-01-30 23:48:38,803 paramiko.transport [chan 1] Sesch channel 1 request ok
2018-01-30 23:48:38,817 paramiko.transport [chan 1] EOF received (1)
2018-01-30 23:48:38,818 paramiko.transport [chan 2] Max packet in: 34816 bytes
2018-01-30 23:48:38,819 paramiko.transport [chan 1] EOF sent (1)
2018-01-30 23:48:38,820 paramiko.transport [chan 2] Max packet out: 32768 bytes
2018-01-30 23:48:38,821 paramiko.transport Secsh channel 2 opened.
2018-01-30 23:48:38,832 paramiko.transport [chan 1] EOF received (1)
2018-01-30 23:48:38,833 paramiko.transport [chan 2] Max packet in: 34816 bytes
2018-01-30 23:48:38,834 paramiko.transport [chan 1] EOF sent (1)
2018-01-30 23:48:38,834 paramiko.transport [chan 2] Max packet out: 32768 bytes
2018-01-30 23:48:38,834 paramiko.transport Secsh channel 2 opened.
2018-01-30 23:48:38,862 paramiko.transport [chan 2] Sesch channel 2 request ok
2018-01-30 23:48:38,876 paramiko.transport [chan 2] Sesch channel 2 request ok
2018-01-30 23:48:38,898 paramiko.transport [chan 2] EOF received (2)
2018-01-30 23:48:38,899 paramiko.transport [chan 2] EOF sent (2)
2018-01-30 23:48:38,900 paramiko.transport [chan 3] Max packet in: 34816 bytes
2018-01-30 23:48:38,915 paramiko.transport [chan 2] EOF received (2)
2018-01-30 23:48:38,916 paramiko.transport [chan 2] EOF sent (2)
2018-01-30 23:48:38,917 paramiko.transport [chan 3] Max packet in: 34816 bytes
2018-01-30 23:48:38,942 paramiko.transport [chan 3] Max packet out: 32768 bytes
2018-01-30 23:48:38,943 paramiko.transport Secsh channel 3 opened.
2018-01-30 23:48:38,957 paramiko.transport [chan 3] Max packet out: 32768 bytes
2018-01-30 23:48:38,957 paramiko.transport Secsh channel 3 opened.
2018-01-30 23:48:38,968 paramiko.transport [chan 3] Sesch channel 3 request ok
2018-01-30 23:48:38,984 paramiko.transport [chan 3] Sesch channel 3 request ok
2018-01-30 23:48:38,999 paramiko.transport.sftp [chan 3] Opened sftp connection (server version 3)
2018-01-30 23:48:39,000 paramiko.transport.sftp [chan 3] open('/root/.ansible/tmp/ansible-tmp-1517327318.18-145745003473541/command.py', 'wb')
2018-01-30 23:48:39,002 paramiko.transport.sftp [chan 3] open('/root/.ansible/tmp/ansible-tmp-1517327318.18-145745003473541/command.py', 'wb') -> 00000000
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


I checked ansible document, however, I couldn't find a way to disable those paramiko log
will somebody direct me to the right method?
thanks a million in advance.

Best,
Leon

Leon Xie

unread,
Jan 30, 2018, 3:14:28 AM1/30/18
to Ansible Project
I am using the below command to run ansible-playbook

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ansible-playbook -c paramiko -i ../../inventory/hosts do_something.yml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Leon Xie

unread,
Jan 30, 2018, 3:16:35 AM1/30/18
to Ansible Project
My Linux server is RHEL6

++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@server]# rpm -qa | grep release
redhat-release-server-6Server-6.9.0.4.el6.x86_64
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Reply all
Reply to author
Forward
0 new messages