diff mbox series

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

Message ID 20250205-ansible_cfg3-v2-2-02620fc1e3d1@samsung.com (mailing list archive)
State New
Headers show
Series ansible.cfg: generate with kconfig | expand

Commit Message

Daniel Gomez Feb. 5, 2025, 7:47 p.m. UTC
From: Daniel Gomez <da.gomez@samsung.com>

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 2556ecad9ce29be1895caf7652938eb9229b0cb4..653c613138f2c2d2c116f0da5cd8baac15a56462 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_CFG_CALLBACK_PLUGIN_DEBUG
+	default KDEVOPS_ANSIBLE_CFG_CALLBACK_PLUGIN_DENSE
 
 config KDEVOPS_ANSIBLE_CFG_CALLBACK_PLUGIN_DEBUG
 	bool "Ansible Debug Callback Plugin"
@@ -66,7 +66,7 @@  config KDEVOPS_ANSIBLE_CFG_CALLBACK_PLUGIN_SHOW_CUSTOM_STATS
 config KDEVOPS_ANSIBLE_CFG_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_CFG_CALLBACK_PLUGIN_SHOW_PER_HOST_START
 config KDEVOPS_ANSIBLE_CFG_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 ab13b4a56cde7bc17378043e2f91e988f502cc3e..f0bdde30864631e2df02fe5e01707db261183bcc 100644
--- a/playbooks/roles/ansible_cfg/defaults/main.yml
+++ b/playbooks/roles/ansible_cfg/defaults/main.yml
@@ -1,10 +1,10 @@ 
 ---
 kdevops_ansible_cfg_deprecation_warnings: True
-kdevops_ansible_cfg_callback_plugin_string: debug
+kdevops_ansible_cfg_callback_plugin_string: dense
 kdevops_ansible_cfg_callback_plugin_check_mode_markers: False
 kdevops_ansible_cfg_callback_plugin_display_failed_stderr: False
 kdevops_ansible_cfg_callback_plugin_display_ok_hosts: True
 kdevops_ansible_cfg_callback_plugin_display_skipped_hosts: True
 kdevops_ansible_cfg_callback_plugin_show_custom_stats: False
-kdevops_ansible_cfg_callback_plugin_show_per_host_start: False
-kdevops_ansible_cfg_callback_plugin_show_task_path_on_failure: False
+kdevops_ansible_cfg_callback_plugin_show_per_host_start: True
+kdevops_ansible_cfg_callback_plugin_show_task_path_on_failure: True