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

相关推荐
炸炸鱼.2 天前
Ansible 部署应用:从入门到精通
ansible
Peace2 天前
【Ansible】
linux·运维·ansible
Plastic garden3 天前
K8s(1)前置ansible准备环境
容器·kubernetes·ansible
遇见火星5 天前
从0到1掌握Ansible:让自动化运维不再是梦想
运维·自动化·ansible
遇见火星5 天前
Jenkins + Ansible 集成实战:把配置管理焊进流水线里
运维·ansible·jenkins
江华森7 天前
Ansible 自动化运维:从入门到实战
运维·自动化·ansible
JackSparrow4148 天前
使用Ansible批量管理+更新产品环境服务器配置
运维·服务器·ci/cd·kubernetes·自动化·ansible·sre
Cat_Rocky11 天前
Linux-ansible之Playbook简单应用
linux·网络·ansible
淼淼爱喝水12 天前
Ansible 入门实战:四种变量优先级比较实验
ansible·变量
淼淼爱喝水12 天前
ansible实战:「磁盘空间 ≥ 2G 时自动创建文件」
前端·ansible·自动创建