From patchwork Thu Feb 6 10:44:19 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Gomez X-Patchwork-Id: 13962797 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 C3FB718B03 for ; Thu, 6 Feb 2025 10:44:44 +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=1738838684; cv=none; b=osWOfVyqpX6eW4UT8BORfPcya5kB+TiIwGUcaz12q4gRtHmS/dxRcApQ+cpQfDeHl0SOwfDzFF9B5C7YO8bGaSyxLK/ezYwCg5YJf1EUPunltpE0RQ6EQR3/jVYFVZhQfQxI7L9CSs7ud35afDlkcC0yn+UIwzDrUukF3+jAkiM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738838684; c=relaxed/simple; bh=Y7QyYK99Sd0f6akPHwxSFgghIPpNfhUDfR9k7jEA/QI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qOBM84SNKDpJFMU9ZBIqRgTDebJucbBV+TXIwCaPpA/wu9KeS28MF7ld+sVXQ+RRoyynx6KotPbeBwBLcccZ0N9Wj1E/ihy4RCDH9iZobGIfIg+rWItLORMpzZ/Te/V+DwBqhLblhMTV1NPxURfj97L8gI7PHBS5Ih4oCL+9Wec= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iAEoBVj3; 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="iAEoBVj3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3718C4CEE0; Thu, 6 Feb 2025 10:44:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738838684; bh=Y7QyYK99Sd0f6akPHwxSFgghIPpNfhUDfR9k7jEA/QI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=iAEoBVj3i2ZtZZI5Whq/Gmobh2HLIujDeSJ4CNbgjXMG+fKRjVTMbk4NG/9oZZaQv c/QKdQQqdPnUwJtUKFY19/eZl06v8ors4mdz1tEGpFx033YZFGoQWvb9PgaV7ru4vc eBarnfDQ4mY+FayvoOu80OJWAxtTy1fQ6WIT43C4YbhzT3sNFnS3faHBwPHx7MqtQw 2wF5KXva1UcQisS6nwlRK6VF1CbwHK+hm+Gu5sfl5xGxl0yzkuxaJ+a4Ok3+3ZgLHa U6bymOxg6B+JR5Ds7PaaZq3ERN8Wqu8FGz52kNSVPNuGhTHWySoOc3CArbOou1qAIW 9o4HajDkcsMFA== From: da.gomez@kernel.org Date: Thu, 06 Feb 2025 10:44:19 +0000 Subject: [PATCH v3 2/4] 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: <20250206-ansible_cfg3-v3-2-4588c8c07e22@samsung.com> References: <20250206-ansible_cfg3-v3-0-4588c8c07e22@samsung.com> In-Reply-To: <20250206-ansible_cfg3-v3-0-4588c8c07e22@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. Acked-by: Luis Chamberlain 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 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