ansible-elixir-stack
ansible-elixir-stack copied to clipboard
Failed to connect to the host via ssh
I've noticed that release.yml:
- when: deploy_type == "restart"
name: stop app
monit: name="{{ app_name }}" state=stopped
Then, I got this error:
TASK [HashNuke.elixir-stack : stop app] ****************************************
fatal: [x.x.x.x]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true}
to retry, use: --limit @playbooks/setup.retry
Please advice
Considering the error message Failed to connect to the host via ssh., most likely your server is unreachable during restart and there is nothing wrong with Ansible or the restart task itself. Check the connection (availability, firewall, etc)