这个一般是由于ansible的版本太高,而官方推荐你放弃py2而使用py3
我们只需要在ansible.cfg的 [default] 字段中插入简单的选项即可.
interpreter_python = /usr/bin/python3
Platform linux on host server3 is using the discovered Python interpreter at /usr/bin/python
最新推荐文章于 2023-08-02 18:22:30 发布