From bcd065f42d825fccd03eb8cea0ed0d764b811333 Mon Sep 17 00:00:00 2001 From: Julian Schacher Date: Wed, 7 Feb 2024 21:04:09 +0100 Subject: [PATCH] Enable pipelining for faster playbook execution Some quick tests show a massive improvement. I ran the following: ansible-playbook playbooks/everything.yaml And the execution times without setting the option were: - 1m25.5s - 1m25.1s - 1m25.8s And with the option set to true: - 25.5s - 24.1s Also see: https://www.redhat.com/sysadmin/faster-ansible-playbook-execution https://www.ansible.com/blog/ansible-performance-tuning https://docs.ansible.com/ansible/latest/reference_appendices/config.html#ansible-pipelining --- ansible.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible.cfg b/ansible.cfg index 06552c3..f0f0d4b 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,2 +1,3 @@ [defaults] inventory = ./inventories/hetzner/hosts.yaml +pipelining = true