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. 检查

posted @ 2020-11-17 11:32  邹姣姣  阅读(2064)  评论(0编辑  收藏  举报