diff mbox series

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

Message ID 20250206-ansible_cfg3-v3-2-4588c8c07e22@samsung.com (mailing list archive)
State New
Headers show
Series ansible.cfg: generate with kconfig | expand

Commit Message

Daniel Gomez Feb. 6, 2025, 10:44 a.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.

Acked-by: Luis Chamberlain <mcgrof@kernel.org>
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 0aa95bfaa6dfd6947f61b1b9da2cf55c16cd95ce..bf09c368d85ece4d1272dbe378e1c283c9f57b89 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 ANSIBLE_CFG_CALLBACK_PLUGIN_DEBUG
+	default ANSIBLE_CFG_CALLBACK_PLUGIN_DENSE
 
 config ANSIBLE_CFG_CALLBACK_PLUGIN_DEBUG
 	bool "Ansible Debug Callback Plugin"
@@ -64,7 +64,7 @@  config ANSIBLE_CFG_CALLBACK_PLUGIN_SHOW_CUSTOM_STATS
 config 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
@@ -72,7 +72,7 @@  config ANSIBLE_CFG_CALLBACK_PLUGIN_SHOW_PER_HOST_START
 config 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 c4787e5b1bb6d792b680f674dd6eac45a9860883..c98334aa8f81e397ce4950a84f108a21d78fc784 100644
--- a/playbooks/roles/ansible_cfg/defaults/main.yml
+++ b/playbooks/roles/ansible_cfg/defaults/main.yml
@@ -1,10 +1,10 @@ 
 ---
 ansible_cfg_deprecation_warnings: true
-ansible_cfg_callback_plugin_string: debug
+ansible_cfg_callback_plugin_string: dense
 ansible_cfg_callback_plugin_check_mode_markers: false
 ansible_cfg_callback_plugin_display_failed_stderr: false
 ansible_cfg_callback_plugin_display_ok_hosts: true
 ansible_cfg_callback_plugin_display_skipped_hosts: true
 ansible_cfg_callback_plugin_show_custom_stats: false
-ansible_cfg_callback_plugin_show_per_host_start: false
-ansible_cfg_callback_plugin_show_task_path_on_failure: false
+ansible_cfg_callback_plugin_show_per_host_start: true
+ansible_cfg_callback_plugin_show_task_path_on_failure: true