Skip to content

Commit 690f58d

Browse files
chuckleverKPD
authored andcommitted
ansible: Increase default task parallelism
Enable workflows with more than 5 target nodes to run concurrently. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
1 parent c148677 commit 690f58d

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

kconfigs/Kconfig.ansible_cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ config ANSIBLE_CFG_DEPRECATION_WARNINGS
108108
Toggle to control the showing of deprecation warnings
109109
https://docs.ansible.com/ansible/latest/reference_appendices/config.html#deprecation-warnings
110110

111+
config ANSIBLE_CFG_FORKS
112+
int "forks"
113+
otuput yaml
114+
default 10
115+
help
116+
Set the default maximum number of concurrent Ansible
117+
operations (forks).
118+
https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_strategies.html#setting-the-number-of-forks
119+
111120
if DISTRO_OPENSUSE
112121

113122
config ANSIBLE_CFG_RECONNECTION_RETRIES

playbooks/roles/ansible_cfg/templates/ansible.cfg.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ display_skipped_hosts = {{ ansible_cfg_callback_plugin_display_skipped_hosts }}
88
show_custom_stats = {{ ansible_cfg_callback_plugin_show_custom_stats }}
99
show_per_host_start = {{ ansible_cfg_callback_plugin_show_per_host_start }}
1010
show_task_path_on_failure = {{ ansible_cfg_callback_plugin_show_task_path_on_failure }}
11+
forks = {{ ansible_cfg_forks }}
1112
{% if ansible_facts['distribution'] == 'openSUSE' %}
1213
[connection]
1314
retries = {{ ansible_cfg_reconnection_retries }}

0 commit comments

Comments
 (0)