Ansible报错:module_stdout": "/bin/sh: 1: /usr/bin/python: not found

1. 检查ansible服务器的Python:

# ls /usr/bin/python

Ansible报错:module_stdout": "/bin/sh: 1: /usr/bin/python: not found

没有则安装。

2. 检查节点服务器的Python:

Ansible报错:module_stdout": "/bin/sh: 1: /usr/bin/python: not found
没有python,路径下也没有。
节点是ubutun系统,按照下面方式安装:

# apt-get install python2.7
# ln -s /usr/bin/python2.7 /usr/bin/python

3. 检查

Ansible报错:module_stdout": "/bin/sh: 1: /usr/bin/python: not found

相关文章:

  • 2022-12-23
  • 2021-04-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2021-11-05
  • 2021-11-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-07
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
相关资源
相似解决方案