更新时间:2022-05-24 22:35:34
在 ansible.cfg
文件中使用 verbosity
而不是 default_verbosity
如下:
Use verbosity
instead of default_verbosity
in ansible.cfg
file as:
$ cat ansible.cfg
[defaults]
verbosity = 1
verbosity
可以是 0|1|2|3|4
表示 None|-v|-vv|-vvv|-vvvv
.
假设,配置文件保存在 特定位置 ansible 调查.
Assuming, the config file is kept under specific locations ansible looks into.
ansible-config list
也可以用来列出所有可用的配置文件设置.
ansible-config list
can also be used to list all the available configuration file settings.