From 91fd8411de41d1f6a1cb43da557b3c1739779298 Mon Sep 17 00:00:00 2001 From: Klaus Smolin <88041391+smolin-de@users.noreply.github.com> Date: Wed, 17 Apr 2024 13:23:37 +0200 Subject: [PATCH] perf: Improve ansible playbook execution (#269) Signed-off-by: Klaus Smolin --- ansible.cfg | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ansible.cfg b/ansible.cfg index f783e28b..59cabd31 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -6,6 +6,15 @@ roles_path=roles interpreter_python=auto host_key_checking=False deprecation_warnings=False +pipelining=True +gathering=smart +fact_caching=jsonfile +fact_caching_connection=/tmp +# 1-hour timeout, adjust if needed +fact_caching_timeout=3600 [inventory] cache=True + +[ssh_connection] +ssh_args = -o ControlMaster=auto -o ControlPersist=3600s