HashNuke / ansible-elixir-stack

Ansible role to setup server with Elixir & Postgres to deploy apps
295 stars 52 forks source link

Failed to connect to the host via ssh #32

Open hopewise opened 8 years ago

hopewise commented 8 years ago

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

dmishh commented 8 years ago

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)