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.
In
roles/lobsters/tasks/main.yml
the opening couple tasks need to run as root, but frommigrate database
most (all?) of them should be running as the userlobsters
, notroot
. This was a bug when I was deploying the scout gem: the migration command ran as root, scout created a newlog/scout_apm.log
, then the following command to recompile assets failed because it couldn't open aroot
-owned config file. Not sure why this one wasn't running asroot
, actually, but for sure all of them should be explicitly running aslobsters
.