-- su -
-- su -u postgres
-- psql
create database {{taskserv.db.name}};
create user {{taskserv.db.user}} with encrypted password '{{taskserv.db.password}}';
grant all privileges on database {{taskserv.db.name}} to {{taskserv.db.user}};

GRANT CREATE ON SCHEMA public TO {{taskserv.db.user}};
ALTER DATABASE {{taskserv.db.name}} OWNER TO {{taskserv.db.user}};
