Does Foreman keep trying to connect after failed SSH?

Regarding remote commands, if Foreman tries to connect for a scheduled job and fails due to SSH error (UNREACHABLE! => {“changed”: false, “msg”: “Failed to connect to the host via ssh: Shared connection to closed.”, “unreachable”: true}) does it continue trying to connect, or does it try once and quit after failure?

We have a job that was run on the 27th of March where a dnf update command was scheduled on 657 servers at 9:30PM EST. The server logs show Foreman running that command on the 28th at 11AM EST. Foreman console shows the job failed with SSH error mentioned.

No, it does not. Do you have some ansible tweaks in place that would make ansible retry on its own?

No we don’t, thanks for verifying