码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2016-07-11 09:04:00      阅读:859      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!