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

  重新执行即可。

相关文章:

  • 2022-12-23
  • 2021-04-06
  • 2021-12-28
  • 2022-12-23
  • 2021-08-04
  • 2022-01-07
  • 2022-02-13
  • 2021-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-05
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
相关资源
相似解决方案