ansible中waring处理方式

在这里插入图片描述[WARNING]: Platform linux on host 192.168.100.20 is using the discovered Python interpreter at /usr/bin/python3, but future
installation of another Python interpreter could change this. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information.

处理方式:

vim ansible.cfg
在defaults下面添加以下内容
#############
interpreter_python = auto_legacy_silent
############

再次执行不会出现WARNING
ansible中waring处理方式_第1张图片

你可能感兴趣的:(ansible)