From mboxrd@z Thu Jan 1 00:00:00 1970 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 9480210E4 for ; Wed, 16 Jul 2025 00:11:20 +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=1752624680; cv=none; b=n3MzaF3DYmfKerR5UuNlTmnV2hsSUd58b1kEOFhyIfos38XjEi0AbjqKAacHhkjYQeCTRr3oIYVyl3y+Xkd0Iv0EV250sYYxhH8pZn1WXcnecS/P3GD+5T8NG0O2RubSbkPFTlk482uGDoZoM8QJlNqf8Lm9IJrfwc5Ta5fhhQQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752624680; c=relaxed/simple; bh=7JGjjDKQRizaa8sR82e8SLXOWyU8Edb92lFA1UIjOes=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZszIpVXfp/XJW2RXRP+JDbNe4Pr4mo0SrJCv7mw8cB+o78tEC2KYLsx8qmhFHplkxYZx4rnrnCPaS6gJQ0WQBxZYVJ0V1gwvPuPhg6g2taeqlx9BscGGZwSYmXNr4QXqUCOACTW7Mx3+dzw3BtvfYQq+Upn1ev5xrb4bf0lo/iI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NYtCJome; 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="NYtCJome" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9B22C4CEE3; Wed, 16 Jul 2025 00:11:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752624680; bh=7JGjjDKQRizaa8sR82e8SLXOWyU8Edb92lFA1UIjOes=; h=From:To:Cc:Subject:Date:From; b=NYtCJomeLsBDTUTYndjKS6sPf+45GkE9AxMcO+cfySI75VmZXErHEP2FLCo1TIr05 zKvIHU5EPwvBPHOomZILFISfRcR4JxxS6ecB42zNCKRPDOPrmvuyhE8k8bICqvZDtI mTSGZBIScg3bnil9qU7wSw1XXERiME+1fsGND0d2JhVg2XRbmbYHnMNkm7Pngm+HbZ D/n+zSf2ExKOHmJsZqhUKhruqzD+LFuX9scGsNNQY+JLk3shkamcPkd1myDeR56eIy C768cH+m22gJW8+jrJFDoXMvsAXrPFNi3/WrnEXMZyOdvHyBF8zC/Y3DrLNIYWQK1B ocxZgGFZMocQA== From: Chuck Lever To: Cc: Daniel Gomez , Chuck Lever Subject: [RFC PATCH 1/2] ansible.cfg: Enable the Ansible debugger when a task fails Date: Tue, 15 Jul 2025 20:11:16 -0400 Message-ID: <20250716001117.1125930-1-cel@kernel.org> X-Mailer: git-send-email 2.50.0 Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Chuck Lever This is useful to avoid generating a whole bunch of unwanted output that can change thread timing. Signed-off-by: Chuck Lever --- kconfigs/Kconfig.ansible_cfg | 13 +++++++++++++ .../roles/ansible_cfg/templates/ansible.cfg.j2 | 1 + 2 files changed, 14 insertions(+) diff --git a/kconfigs/Kconfig.ansible_cfg b/kconfigs/Kconfig.ansible_cfg index b587596bc8d5..48f84d8fe04e 100644 --- a/kconfigs/Kconfig.ansible_cfg +++ b/kconfigs/Kconfig.ansible_cfg @@ -10,6 +10,10 @@ config ANSIBLE_CFG_FORKS_SET_BY_CLI bool default $(shell, scripts/check-cli-set-var.sh ANSIBLE_CFG_FORKS) +config ANSIBLE_CFG_TASK_DEBUGGER_SET_BY_CLI + bool + default $(shell, scripts/check-cli-set-var.sh ANSIBLE_CFG_TASK_DEBUGGER) + menu "Ansible Callback Plugin Configuration" choice prompt "Ansible Callback Plugin" @@ -207,6 +211,15 @@ config ANSIBLE_CFG_FORKS endif # !ANSIBLE_CFG_FORKS_CUSTOM +config ANSIBLE_CFG_TASK_DEBUGGER + bool "Enable the Ansible task debugger on failed tasks" + output yaml + default n + help + When this setting is enabled, a task failure invokes the + Ansible debugger. Generally this is useful only when + running kdevops from the command line. + if DISTRO_OPENSUSE config ANSIBLE_CFG_RECONNECTION_RETRIES diff --git a/playbooks/roles/ansible_cfg/templates/ansible.cfg.j2 b/playbooks/roles/ansible_cfg/templates/ansible.cfg.j2 index 2bc916321f42..f71033b2c88f 100644 --- a/playbooks/roles/ansible_cfg/templates/ansible.cfg.j2 +++ b/playbooks/roles/ansible_cfg/templates/ansible.cfg.j2 @@ -10,6 +10,7 @@ show_per_host_start = {{ ansible_cfg_callback_plugin_show_per_host_start }} show_task_path_on_failure = {{ ansible_cfg_callback_plugin_show_task_path_on_failure }} interpreter_python = {{ ansible_cfg_interpreter_python_string }} forks = {{ ansible_cfg_forks }} +enable_task_debugger = {{ ansible_cfg_task_debugger }} {% if ansible_facts['distribution'] == 'openSUSE' %} [connection] retries = {{ ansible_cfg_reconnection_retries }} -- 2.50.0