From 40f024ab64b5130d52b718c1c41db3466a7f9fa3 Mon Sep 17 00:00:00 2001 From: James Antill Date: Thu, 2 Oct 2025 15:56:09 -0400 Subject: [PATCH] ansible: Set conn. retries to 4, for tasks with large num. of hosts. Signed-off-by: James Antill --- roles/ansible-server/templates/ansible.cfg.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/ansible-server/templates/ansible.cfg.j2 b/roles/ansible-server/templates/ansible.cfg.j2 index 8206f834e0..5fcd1a9cf0 100644 --- a/roles/ansible-server/templates/ansible.cfg.j2 +++ b/roles/ansible-server/templates/ansible.cfg.j2 @@ -862,6 +862,9 @@ enable_plugins=ini, constructed # (integer) Number of attempts to connect. ;retries=0 +# Sometimes the nightly cron runs for updates/uptimes skip a host, assume +# it's mostly due to weird connection/network issues so retry a bit. +retries=4 # (string) This defines the location of the scp binary. It defaults to C(scp) which will use the first binary available in $PATH. ;scp_executable=scp