deprecation_warnings
允许在ansible-playbook输出结果中禁用“不建议使用”警告:
deprecation_warnings = True
“不建议警告”指的是使用一些在新版本中可能会被淘汰的遗留特性.
display_skipped_hosts
如果设置为False
,ansible 将不会显示任何跳过任务的状态.默认选项是现实跳过任务的状态::
display_skipped_hosts=True
注意Ansible 总是会显示任何任务的头文件, 不管这个任务被跳过与否.
error_on_undefined_vars
从Ansible 1.3开始,这个选项将为默认,如果所引用的变量名称错误的话, 将会导致ansible在执行步骤上失败::
error_on_undefined_vars=True
如果设置为false,任何包含没有定义的变量的‘{{ template_expression }}都将被呈现在一个模板或Ansible作用线写的很详细。(If set to False, any ‘{{ template_expression }}’ that contains undefined variables will be rendered in a template or ansible action line exactly as written.)
executable
这个选项可以在sudo环境下产生一个shell交互接口. 用户只在/bin/bash的或者sudo限制的一些场景中需要修改.大部分情况下不需要修改::
executable = /bin/bash
filter_plugins
过滤器是一种特殊的函数,用来拓展模版系统 .
这是一个开发者核心的特性,允许Ansible从任何地方载入底层拓展模块:
filter_plugins = ~/.ansible/plugins/filter_plugins/:/usr/share/ansible_plugins/filter_plugins
Most users will not need to use this feature.
force_color
到没有使用TTY终端的时候,这个选项当用来强制颜色模式::
force_color = 1