技术栈

ansible中waring处理方式

睡不醒的猪儿2023-10-21 22:51

[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

上一篇:【React】高频面试题
下一篇:Java 8 新特性 Ⅰ
相关推荐
米高梅狮子
4 小时前
01-Ansible 自动化介绍
运维·自动化·ansible
米高梅狮子
4 小时前
02-Ansible 基本使用
ansible
cly1
3 天前
Ansible自动化(十五):加解密详解
运维·自动化·ansible
cly1
3 天前
Ansible自动化(十二):Jinja2过滤器
运维·自动化·ansible
cly1
3 天前
Ansible自动化(十三):调试与优化
数据库·自动化·ansible
cly1
3 天前
Ansible自动化(十四):Roles(角色)
服务器·自动化·ansible
cly1
3 天前
Ansible自动化(十一):Jinja2模板
网络·自动化·ansible
cly1
3 天前
Ansible自动化(八):条件语句
运维·自动化·ansible
China_Yanhy
3 天前
Ansible 工业级项目标准化架构指南 (V1.0)
架构·ansible
cly1
3 天前
Ansible自动化(九):循环语句
windows·自动化·ansible
热门推荐
01GitHub 镜像站点02Labelme从安装到标注:零基础完整指南03网站改了域名,如何查找?04Linux下V2Ray安装配置指南05安娜的档案(Anna’s Archive) 镜像网站/国内最新可访问入口(持续更新)06【踩坑笔记】50系显卡适配的 PyTorch 安装072025-04-03 Latex学习1——本地配置Latex + VScode环境08CentOS的ISO镜像下载09AI 规范驱动开发“三剑客”深度对比:Spec-Kit、Kiro 与 OpenSpec 实战指南10Claude Code 2.1.2 升级报错?别折腾了,一行命令搞定