A lot of applications depend on a database and since databases are used very often, we usually have a separate role for installing a database and a role for installing an application. So if we have two roles: db and app, and app role depends on a database, in which role is it better to created the needed database and possibly the database user which is needed for that app?
Is it better to create it in the db role, e.g. by passing a variable to the db role in the dependency section; or in the app role itself? There are advantages and disadvantages to both of these, but we can discuss them later on.