ansible-elixir-stack icon indicating copy to clipboard operation
ansible-elixir-stack copied to clipboard

Failed to connect to the host via ssh

Open hopewise opened this issue 9 years ago • 1 comments

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

hopewise avatar Aug 06 '16 12:08 hopewise

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)

dmishh avatar Sep 23 '16 17:09 dmishh