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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM