Closed ltalirz closed 4 years ago
Not sure... Is there an easy way to support both behaviours and choose them with a config flag?
Many roles anyhow require sudo access currently (the aiida role as well). So, I'm not sure this is really an issue at the moment. I'm going to close.
Problem
Currently, the aiida role sets up the database using the
postgres
user https://github.com/marvel-nccr/quantum-mobile/blob/1a23171c38fa421653093ef29fc9e03112ef270f/roles/aiida/tasks/aiida-core.yml#L19-L31This doesn't work, if the user
regularuser
that ansible takes for provisioning does not have sudo privileges.Possible solutions
Set the password of the
postgres
user and provide it to the role via a variable (should work) The problem:regularuser
won't be able to make any changes to the DB!Install DB using
regularuser
- after all, it's really more of a per-user DB than a system-wide DB.@giovannipizzi What do you say?