2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-19 17:02:22 +00:00

Merge pull request #330 from Obihoernchen/fix/runansible-ssh-keepalive

Use ssh keepalives for ansible plays
This commit is contained in:
Jarrod Johnson
2026-10-30 17:20:06 -04:00
committed by GitHub
+3
View File
@@ -134,6 +134,9 @@ class PlayRunner(object):
ansiblesshargs = os.environ.get('ANSIBLE_SSH_ARGS', '')
if 'hostbasedkeytypes' not in ansiblesshargs.lower() and 'hostbasedacceptedalgorithms' not in ansiblesshargs.lower():
ansiblesshargs += ' -o HostbasedAcceptedAlgorithms=*ed25519*'
# notice a node that was reset mid play, else ssh waits forever
if 'serveraliveinterval' not in ansiblesshargs.lower():
ansiblesshargs += ' -o ServerAliveInterval=15 -o ServerAliveCountMax=4'
localenv['ANSIBLE_SSH_ARGS'] = ansiblesshargs
with feedback:
for playfilename in self.playfiles: