Python 在资源调配过程中,最终会出现Ansible错误

Python 在资源调配过程中,最终会出现Ansible错误,python,provisioning,ansible-playbook,Python,Provisioning,Ansible Playbook,在从OS X主机配置具有Ansible 1.9.1的服务器时,我在配置过程中的随机点处遇到以下错误: No handlers could be found for logger "paramiko.transport" fatal: [xxx.xxx.xxx.xxx] => {'msg': 'One or more items failed.', 'failed': True, 'changed': False, 'results': [{'invocation': {'mod

在从OS X主机配置具有Ansible 1.9.1的服务器时,我在配置过程中的随机点处遇到以下错误:

No handlers could be found for logger "paramiko.transport"
fatal: [xxx.xxx.xxx.xxx] => 
{'msg': 'One or more items failed.', 'failed': True, 'changed': False, 'results': 
    [{'invocation': {'module_name': 'somemodule', 'module_args': ''},
    'item': {'priv': 'ALL', 'moreitems'}, 'changed': False, 'user': ''}, 
            {'msg': 'FAILED: Error reading SSH protocol banner[Errno 
              54] Connection reset by peer', 'failed': True}]}

FATAL: all hosts have already failed -- aborting
我无法理解为什么对等方在随机点重置连接。我没有配置paramiko日志记录


如果Ansible上、linux服务器上、OS X主机上或其他地方出现此错误?

问题最终是pycrypto的Python 2.6版本

医生帮我修好了

我假设升级到Python2.7也可以解决这个问题(我没有测试)