HashNuke / ansible-elixir-stack

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

sudo instead of root #24

Open arunvelsriram opened 8 years ago

arunvelsriram commented 8 years ago
  1. Since running applications as root is not recommended I extracted remote_user as a variable so that the default value set for it is not root.
  2. I used sudo for commands that require escalated privileges. The password for sudo can be managed by modifying the sudoers file or by using ansible-vault.
  3. Used ~ to find the correct home directory of deployer.
  4. Specify the roles path with -p option provided by ansible-galaxy to have the roles inside the project directory itself.
HashNuke commented 8 years ago

@arunvelsriram Will need time to look into this. There's some parallel refactoring work going on in the upgrade-fixes branch. https://github.com/HashNuke/ansible-elixir-stack/tree/upgrade-fixes

HashNuke commented 8 years ago

@arunvelsriram I would rather have contributions based on the upgrade-fixes branch than the master since there'll most likely be a lot of conflicts. Here's a list of pending issues on that branch https://github.com/HashNuke/ansible-elixir-stack/issues/23

arunvelsriram commented 8 years ago

@HashNuke Yes its quite a lot of changes. Please take your own time. I have already started working on the upgrade-fixes branch. Will make a pull request soon.

arunvelsriram commented 8 years ago

Hi. I checked the upgrade-fixes branch. Looks like refactoring is going well. May I know if the code on upgrade-fixes branch is stable and ready to use ?

HashNuke commented 8 years ago

@arunvelsriram Not yet. Almost there. I tried out distillery and have notes. Need to make changes.