经过ansible执行远程命令时报以下异常:python
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。json
安装python和python-simplejsonui
yum install python yum install python-simplejson
从新执行便可。spa