Fork me on GitHub

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

   通过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

  重新执行即可。

posted @ 2016-07-11 08:31  秋楓  阅读(1162)  评论(0编辑  收藏  举报