ansible - Ansible 给出“ansible.utils.display.initialize_locale 尚未被调用”警告
问题描述
我收到此警告ansible.utils.display.initialize_locale has not been called
,但找不到修复它的文档。
[WARNING]: ansible.utils.display.initialize_locale has not been called, this may result in incorrectly calculated text widths that can cause Display to print incorrect line lengths
剧本:
- name: Create Docker Swarm Cluster
hosts: localhost
connection: local
vars:
# Project name to used as part of resource names
project_name: swarm
# The location of the Azure resources
location: eastus
运行它:
ansible-playbook provision.yml
用于python3 -m venv env
设置环境。
和 ansible 版本:
$ ansible --version
ansible [core 2.11.1]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/pomatti/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/pomatti/projects/personal/docker-swarm-cluster-with-ansible/env/lib/python3.8/site-packages/ansible
ansible collection location = /home/pomatti/.ansible/collections:/usr/share/ansible/collections
executable location = /home/pomatti/projects/personal/docker-swarm-cluster-with-ansible/env/bin/ansible
python version = 3.8.5 (default, May 27 2021, 13:30:53) [GCC 9.3.0]
jinja version = 3.0.1
libyaml = True
解决方案
推荐阅读
- r - 根据 R 中的值绘制具有条件颜色的数据
- python - 这段代码中查找素数分解有什么问题
- swiftui - 带有 ScrollView 和 PageTabViewStyle() 的 SwiftUI NavigationView
- python - 如何在分类数据上与 seaborn 聊天获取标签值
- python - 随机字母生成器卡在最后一次迭代中
- bash - 如何设置 noclobber 选项而不将其登录到已设置的控制台?
- java - JenkinsFile - 无法调用 java 类函数。CpsCompilationErrorException - 无法解析类
- postgresql - 如果满足两个条件中的任何一个(一个在 WHERE 子句中,另一个在 HAVING 子句中),则选择行
- flutter - 动画列表中的颤振关闭项目无法正常工作
- javascript - 如何将 NodeJS 查询分配给全局数组变量?