From patchwork Wed Feb 5 19:47:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Gomez X-Patchwork-Id: 13961835 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A7BA1E0DE4 for ; Wed, 5 Feb 2025 19:47:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738784854; cv=none; b=f+DWk/kbIMDbI0y/YaT3GMuIJE9Qoab/56IiRo+rPlKfv1ILMSZt7Mcp/PPKyYyeamYtOWN9JuDxIrBEnIUua0TV4unuBsDpk4R6Vd166sFhF+NsXIkFdPPi9ZGVnYKyi//hzvYjqa0+cnhbLRuYr3aU6Az8sxn18NorTYayLlg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738784854; c=relaxed/simple; bh=q7+1qBy0L+jPXzAH/ihzkoAklDVQaDc4rJi8P+gQqg8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dD4QiWkmWglaJzcf8Sz98MdKaGieQWDElb0yVgu1ZYbgSjs8SGIImSXO8lgl4Ml0TkT3u6XCjdMuodK25j8kQnq3mAi3TwDXZgDz9wk6sjMaeDk+qnoYmGhL5Mk3PuntZwv6OruhEnfYurlDxc9YC7kimMDyFKl76jY2UpZ5a2Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oqn2Us9a; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oqn2Us9a" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 237D2C4CEDD; Wed, 5 Feb 2025 19:47:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738784853; bh=q7+1qBy0L+jPXzAH/ihzkoAklDVQaDc4rJi8P+gQqg8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=oqn2Us9ay5E9AormNc4Q/Jx+MRtSzP1O4crW5pJ/F0dQyo34hh9ZZe6P2JAGr9tbP uY7TalPHZ9bsw9SwgECA3eDZk+pAnsLsxbHjNNYfAi7GeZnD0Kxi0LLrUtTtXB+wVh sNgrJWTiMeAe5kRLvk6QcitmrTAUhARYVG9bTHZBiVtgiLUmuAlUrROT2gJls89e3C lIInj0TjO7Gm5lx9r0If/LGWdiGuETIg9TRz70yvgxutnuFsvyDsJ3EwpilI+jv1Er 8sT0V24Zh+K+NEBjTrlmq+fPmhhoWkeBhL7N5IvAOb2P+/RjKm6KmMEOTwjHVw6C6M tsJEurWdsU6qg== From: da.gomez@kernel.org Date: Wed, 05 Feb 2025 19:47:17 +0000 Subject: [PATCH v2 2/2] ansible.cfg: change defaults to minimal Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250205-ansible_cfg3-v2-2-02620fc1e3d1@samsung.com> References: <20250205-ansible_cfg3-v2-0-02620fc1e3d1@samsung.com> In-Reply-To: <20250205-ansible_cfg3-v2-0-02620fc1e3d1@samsung.com> To: Luis Chamberlain , Chuck Lever Cc: kdevops@lists.linux.dev, Daniel Gomez X-Mailer: b4 0.14.2 From: Daniel Gomez 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 --- kconfigs/Kconfig.ansible_cfg | 6 +++--- playbooks/roles/ansible_cfg/defaults/main.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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