public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] ansible: Increase default task parallelism
@ 2025-04-04 20:48 cel
  2025-04-04 23:41 ` Luis Chamberlain
  2025-04-08 13:15 ` Daniel Gomez
  0 siblings, 2 replies; 6+ messages in thread
From: cel @ 2025-04-04 20:48 UTC (permalink / raw)
  To: Daniel Gomez; +Cc: kdevops, Chuck Lever

From: Chuck Lever <chuck.lever@oracle.com>

Enable workflows with more than 5 target nodes to run concurrently.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---
 kconfigs/Kconfig.ansible_cfg                         | 9 +++++++++
 playbooks/roles/ansible_cfg/templates/ansible.cfg.j2 | 1 +
 2 files changed, 10 insertions(+)

This will certainly conflict with other recent patches posted here,
but I thought I would post for comments. I've been running with the
"forks" setting elevated for a while, but the new ansible_cfg logic
added here is untested.

diff --git a/kconfigs/Kconfig.ansible_cfg b/kconfigs/Kconfig.ansible_cfg
index 7286b0fe5025..34c8c93fadd6 100644
--- a/kconfigs/Kconfig.ansible_cfg
+++ b/kconfigs/Kconfig.ansible_cfg
@@ -108,6 +108,15 @@ config ANSIBLE_CFG_DEPRECATION_WARNINGS
 	  Toggle to control the showing of deprecation warnings
 	  https://docs.ansible.com/ansible/latest/reference_appendices/config.html#deprecation-warnings
 
+config ANSIBLE_CFG_FORKS
+	int "forks"
+	otuput yaml
+	default 10
+	help
+	  Set the default maximum number of concurrent Ansible
+	  operations (forks).
+	  https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_strategies.html#setting-the-number-of-forks
+
 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 e13931b5ce97..04ae67782c20 100644
--- a/playbooks/roles/ansible_cfg/templates/ansible.cfg.j2
+++ b/playbooks/roles/ansible_cfg/templates/ansible.cfg.j2
@@ -8,6 +8,7 @@ display_skipped_hosts = {{ ansible_cfg_callback_plugin_display_skipped_hosts }}
 show_custom_stats = {{ ansible_cfg_callback_plugin_show_custom_stats }}
 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 }}
+forks = {{ ansible_cfg_forks }}
 {% if ansible_facts['distribution'] == 'openSUSE' %}
 [connection]
 retries = {{ ansible_cfg_reconnection_retries }}
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-04-09 18:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-04 20:48 [PATCH] ansible: Increase default task parallelism cel
2025-04-04 23:41 ` Luis Chamberlain
2025-04-08 13:23   ` Daniel Gomez
2025-04-08 13:15 ` Daniel Gomez
2025-04-08 13:51   ` Chuck Lever
2025-04-09 18:52     ` Daniel Gomez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox