From 2eafd28928c249521ea43bd01395bd1134c87c24 Mon Sep 17 00:00:00 2001 From: Sergii Golovatiuk Date: Thu, 14 May 2026 20:03:56 +0200 Subject: [PATCH] [ansible] Add SSH keepalive to prevent connection drops during long tasks Long-running tasks like `oc adm wait-for-stable-cluster` after certificate rotation can cause SSH connections to be dropped by intermediate network devices (firewalls, NAT) due to inactivity. Add ServerAliveInterval and ServerAliveCountMax to maintain the connection alive. Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Sergii Golovatiuk --- ansible.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible.cfg b/ansible.cfg index 1ba690483..8101b03b5 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -20,4 +20,4 @@ pipelining = True any_errors_fatal = True jinja2_native = True [ssh_connection] -ssh_args = -o ControlMaster=auto -o ControlPersist=300 +ssh_args = -o ControlMaster=auto -o ControlPersist=300 -o ServerAliveInterval=30 -o ServerAliveCountMax=10