HashNuke / ansible-elixir-stack

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

Skip action: deployer-user #15

Closed chandresh closed 9 years ago

chandresh commented 9 years ago

I am new to Ansible (as well as Elixir & Phoenix) and am trying to deploy my first test app to production. I tried ansible-elixir-stack and get the following error at the action deployer-user:

fatal: [*.*.*.*] => SSH Error: Permission denied (publickey,password).
    while connecting to *.*.*.*
It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.

Is there a way to skip the action: deployer-user? I already have a deployer user setup on my production server so I do not need this.

HashNuke commented 9 years ago

@chandresh No it cannot be skipped. You can configure the name of the deployer user so that it's different from your other user. The reason is because ansible-elixir-stack uses the asdf version manager to install erlang, elixir & node.js (people might be using other stuff for other apps). Don't want things to overlap.

HashNuke commented 9 years ago

@chandresh Here's the configuration details - https://github.com/HashNuke/ansible-elixir-stack/blob/master/docs/configuration.md

chandresh commented 9 years ago

@HashNuke Thanks for quick response. I checked the configuration already and there is no option to skip the deployer-user. There is an option to skip the postgres. For now I have forked the project and locally updated the code for action-setup.yml as follows:

- when: setup_deployer == True
  include: deployer-user.yml

I am still playing with this. If you want I can submit a PR once I have a solution that works.

chandresh commented 9 years ago

@HashNuke I added the default config for setup_deployer in my fork and the code from my last comment and it worked it a charm.

chandresh commented 9 years ago

@HashNuke, just noticed you had two comments and I replied on the basis of your last comment. I will try with setting different deployer user. Thanks for the awesome tool. It made my life easier.