Skip to content

Commit c720223

Browse files
chuckleverKPD
authored andcommitted
ansible_cfg: template boolean defaults must be "False"
I found that the "disable_skipped_hosts" Kconfig setting was not working. Using "output yaml" with a boolean behaves somewhat counter- intuitively. When the user specifies "Yes, please set this", the variable appears in .extra_vars_auto.yaml with a value of True. When the user specifies "No, please do not set this" the variable does not appear in .extra_vars_auto.yaml at all. To make a template that uses these variables behave correctly, then, the defaults/main.yml setting has to be False always. When the Kconfig setting is enabled, that will override this default. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent 9c7bd6b commit c720223

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • playbooks/roles/ansible_cfg/defaults
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
ansible_cfg_deprecation_warnings: true
2+
ansible_cfg_deprecation_warnings: false
33
ansible_cfg_callback_plugin_string: dense
44
ansible_cfg_callback_plugin_check_mode_markers: false
55
ansible_cfg_callback_plugin_display_failed_stderr: false
6-
ansible_cfg_callback_plugin_display_ok_hosts: true
7-
ansible_cfg_callback_plugin_display_skipped_hosts: true
6+
ansible_cfg_callback_plugin_display_ok_hosts: false
7+
ansible_cfg_callback_plugin_display_skipped_hosts: false
88
ansible_cfg_callback_plugin_show_custom_stats: false
9-
ansible_cfg_callback_plugin_show_per_host_start: true
10-
ansible_cfg_callback_plugin_show_task_path_on_failure: true
9+
ansible_cfg_callback_plugin_show_per_host_start: false
10+
ansible_cfg_callback_plugin_show_task_path_on_failure: false
1111
ansible_cfg_interpreter_python: "auto_silent"
1212
ansible_cfg_forks: 10

0 commit comments

Comments
 (0)