报错信息
[DEPRECATION WARNING]: Distribution Ubuntu 18.04 on host 192.168.1.1 should use /usr/bin/python3, but is using
/usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to
using the discovered platform python for this host. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. This
feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False
in ansible.cfg.

解决方法 - 修改配置文件
配置:/etc/ansible/ansible.cfg






![火车头小发猫AI伪原创[php源码]](https://img-blog.csdnimg.cn/6b0790b51d7f4bf192da2d3e2ff6f57a.png)













