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

1. 检查ansible服务器的Python:
# ls /usr/bin/python

没有则安装。
2. 检查节点服务器的Python:

没有python,路径下也没有。
节点是ubutun系统,按照下面方式安装:
# apt-get install python2.7
# ln -s /usr/bin/python2.7 /usr/bin/python
3. 检查

浙公网安备 33010602011771号