diff mbox series

[2/2] ansible.cfg: change defaults to minimal

Message ID 20250203-ansible_cfg3-v1-2-a9e75cd067d7@samsung.com (mailing list archive)
State New
Headers show
Series ansible.cfg: generate with kconfig | expand

Commit Message

Daniel Gomez Feb. 3, 2025, 3:55 p.m. UTC
Set default Callback plugin to Dense for a minimal stdout.

Also, enable show_per_host_start to show when a task is started. And
enable show_task_path_on_failure to show failed task when failure.

Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
---
 kconfigs/Kconfig.ansible_cfg                  | 6 +++---
 playbooks/roles/ansible_cfg/defaults/main.yml | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/kconfigs/Kconfig.ansible_cfg b/kconfigs/Kconfig.ansible_cfg
index 1b2885189dfb6a11c09a0ef4ddafa6889f4c26f2..607a9fb58f987f407f430a66ab646f7d3205f446 100644
--- a/kconfigs/Kconfig.ansible_cfg
+++ b/kconfigs/Kconfig.ansible_cfg
@@ -1,7 +1,7 @@ 
 menu "Ansible Callback Plugin Configuration"
 choice
 	prompt "Ansible Callback Plugin"
-	default KDEVOPS_ANSIBLE_CONFIG_CALLBACK_PLUGIN_DEBUG
+	default KDEVOPS_ANSIBLE_CONFIG_CALLBACK_PLUGIN_DENSE
 
 config KDEVOPS_ANSIBLE_CONFIG_CALLBACK_PLUGIN_DEBUG
 	bool "Ansible Debug Callback Plugin"
@@ -66,7 +66,7 @@  config KDEVOPS_ANSIBLE_CONFIG_CALLBACK_PLUGIN_SHOW_CUSTOM_STATS
 config KDEVOPS_ANSIBLE_CONFIG_CALLBACK_PLUGIN_SHOW_PER_HOST_START
 	bool "show_per_host_start"
 	output yaml
-	default n
+	default y
 	help
 	  This adds output that shows when a task is started to execute for each host
 	  https://docs.ansible.com/ansible/latest/collections/community/general/dense_callback.html#parameter-show_per_host_start
@@ -74,7 +74,7 @@  config KDEVOPS_ANSIBLE_CONFIG_CALLBACK_PLUGIN_SHOW_PER_HOST_START
 config KDEVOPS_ANSIBLE_CONFIG_CALLBACK_PLUGIN_SHOW_TASK_PATH_ON_FAILURE
 	bool "show_task_path_on_failure"
 	output yaml
-	default n
+	default y
 	help
 	  When a task fails, display the path to the file containing the failed task and
 	  the line number. This information is displayed automatically for every task when
diff --git a/playbooks/roles/ansible_cfg/defaults/main.yml b/playbooks/roles/ansible_cfg/defaults/main.yml
index 5d766a78760cede43b9e4df88e280b21e3eb8ca0..4c772df1ea2c85334b52ec24393fe34f238d9eaf 100644
--- a/playbooks/roles/ansible_cfg/defaults/main.yml
+++ b/playbooks/roles/ansible_cfg/defaults/main.yml
@@ -1,9 +1,9 @@ 
 ---
-kdevops_ansible_config_callback_plugin_string: debug
+kdevops_ansible_config_callback_plugin_string: dense
 kdevops_ansible_config_callback_plugin_check_mode_markers: False
 kdevops_ansible_config_callback_plugin_display_failed_stderr: False
 kdevops_ansible_config_callback_plugin_display_ok_hosts: True
 kdevops_ansible_config_callback_plugin_display_skipped_hosts: True
 kdevops_ansible_config_callback_plugin_show_custom_stats: False
-kdevops_ansible_config_callback_plugin_show_per_host_start: False
-kdevops_ansible_config_callback_plugin_show_task_path_on_failure: False
+kdevops_ansible_config_callback_plugin_show_per_host_start: True
+kdevops_ansible_config_callback_plugin_show_task_path_on_failure: True