且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2022-09-29 18:35:59

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

  重新执行即可。








本文转自秋楓博客园博客,原文链接:XXXXXXXX,如需转载请自行联系原作者