action-ansible-playbook icon indicating copy to clipboard operation
action-ansible-playbook copied to clipboard

Failed to connect to the host via ssh: Shared connection to *** closed

Open serhii-chernenko opened this issue 1 year ago • 2 comments

Last time I meet the error in my build commands:

UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Shared connection to *** closed.", "unreachable": true}

It happens the first time per each build. When I press Re-run failed jobs, everything is fine without any changes. Does someone experienced the same issue recently? Everything was fine maybe 1 month ago. I change nothing to fix it, just re-run. It's strange.

serhii-chernenko avatar Oct 14 '24 18:10 serhii-chernenko

@serhii-chernenko I have been getting this error a lot recently as well. Same issue for me, if I re-run the action it always works fine. I have had no issue manually connecting to the server in question either.

enxoco avatar Feb 17 '25 21:02 enxoco

I can also confirm that this happens when using ansible-playbook cli bundled with Github Actions Ubuntu images. In other words I don't think it is an issue related to this plugin specifically.

enxoco avatar Feb 19 '25 19:02 enxoco