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

相关文章: