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