lobsters / lobsters-ansible

Ansible playbook for lobste.rs
ISC License
79 stars 25 forks source link

deploy commands run as root, not lobsters #41

Closed pushcx closed 3 years ago

pushcx commented 5 years ago

In roles/lobsters/tasks/main.yml the opening couple tasks need to run as root, but from migrate database most (all?) of them should be running as the user lobsters, not root. This was a bug when I was deploying the scout gem: the migration command ran as root, scout created a new log/scout_apm.log, then the following command to recompile assets failed because it couldn't open a root-owned config file. Not sure why this one wasn't running as root, actually, but for sure all of them should be explicitly running as lobsters.

pushcx commented 3 years ago

This has been fixed for a while.