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

相关推荐
道清茗5 天前
【RH294知识点汇总】第 7 章 《 使用角色和 Ansible 内容集合简化 Playbook 》常见问题
ansible
何中应6 天前
Ansible安装&使用
运维·自动化·ansible·运维开发·自动化运维
王九思6 天前
Ansible 自动化运维基础—模板
运维·自动化·ansible
道清茗7 天前
【RH294知识点汇总】第 7 章 《 使用角色和 Ansible 内容集合简化 Playbook 》
java·前端·ansible
切糕师学AI7 天前
深入解析 Ansible:从入门到实践
ansible
王的宝库7 天前
【Ansible】变量与敏感数据管理:Vault 加密 + Facts 采集详解
笔记·学习·ansible
张3239 天前
Ansible拆分大型Playbook
linux·ansible
爱莉希雅&&&9 天前
Ansible+Docker案例(含ansible配置安装docker)
linux·运维·mysql·nginx·docker·容器·ansible
张3239 天前
配置加载混淆(vars_files与from_yaml)
ansible
张3239 天前
角色与内容集合:自动化配置的标准化复用机制
运维·自动化·ansible