首页 > Web开发 > 详细

ansible操作远程服务器报Error: ansible requires the stdlib json or simplejson module, neither was found!

时间:2016-07-11 09:01:52      阅读:468      评论:0      收藏:0      [点我收藏+]

   通过ansible执行远程命令时报如下异常:

Error: ansible requires the stdlib json or simplejson module, neither was found!

  这是由于ansible执行远程命令或脚本需要python和python-simplejson的支持,如果python版本大于2.5则安装python即可,如果小于2.5则需要安装python和python-simplejson。

  安装python和python-simplejson

yum install python
yum install python-simplejson

  重新执行即可。

ansible操作远程服务器报Error: ansible requires the stdlib json or simplejson module, neither was found!

原文:http://www.cnblogs.com/rwxwsblog/p/5658707.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!