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

相关推荐
AquaPluto11 天前
Ansible-Playbook详解
ansible·playbook·roles
chairon17 天前
Ansible:playbook的高级用法
linux·运维·服务器·ansible·apache
树下一少年17 天前
ansible+docker+docker-compose快速部署4节点高可用minio集群
docker·容器·ansible·docker-compose·minio集群
千航@abc19 天前
Ansible 实战:Roles,运维的 “魔法函数”
ansible·playbook·roles·角色·模版·剧本
一个高效工作的家伙19 天前
ansible可视化自动化平台-semaphore
ansible
树下一少年19 天前
通过ansible+docker-compose快速安装一主两从redis+三sentinel
redis·docker·ansible·sentinel·docker-compose
独隅20 天前
针对Ansible执行脚本时报错“可执行文件格式错误”,以下是详细的解决步骤和示例
运维·开发语言·ansible·lua·lua5.4
大小科圣20 天前
Ansible playbook
ansible
大小科圣20 天前
ansible条件判断及循环
ansible
狂奔solar22 天前
ansible-playbook 写arm版达梦7数据库的一键安装脚本
ansible