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.

处理方式:

bash 复制代码
vim ansible.cfg
在defaults下面添加以下内容
#############
interpreter_python = auto_legacy_silent
############

再次执行不会出现WARNING

相关推荐
lifeng432115 小时前
在 CentOS 上将 Ansible 项目推送到 GitHub 的完整指南
centos·github·ansible
运维成长记5 天前
ansible-playbook 进阶 接上一章内容
linux·服务器·ansible
半桶水专家6 天前
Ansible 配置Playbook文件格式、关键字和语法详解
ansible
遇见火星8 天前
Ansible模块——Ansible配置文件!
linux·git·ansible
安顾里10 天前
Ansible安装
linux·运维·自动化·ansible
爱莉希雅&&&11 天前
运维Linux之Ansible详解学习(更新中)
linux·运维·ansible
筑梦之路17 天前
centos 9 Kickstart + Ansible自动化部署 —— 筑梦之路
centos·自动化·ansible
遇见火星17 天前
Ansible模块——通过 URL 下载文件
ansible
遇见火星17 天前
Ansible模块——管理100台Linux的最佳实践
linux·运维·ansible
Ashmcracker17 天前
在Ubuntu使用 Ansible 配置 Azure 资源的动态清单
ubuntu·microsoft·云计算·ansible·azure·devops