roles/pleroma/tasks/main.yaml
changeset 66 652a236229c2
parent 65 4538ad030906
child 67 bd34ae082697
--- a/roles/pleroma/tasks/main.yaml	Sun Dec 30 11:13:20 2018 -0600
+++ b/roles/pleroma/tasks/main.yaml	Mon Dec 31 15:50:19 2018 -0600
@@ -50,9 +50,12 @@
 
 - name: install pleroma psql
   become: yes
-  become_user: "postgres"
-  command: "psql -f ~{{pleroma_user}}/pleroma/config/setup_db.psql"
+  become_user: "{{pleroma_db_superuser}}"
+  command: "psql -f ~{{pleroma_user}}/pleroma/config/setup_db.psql -h {{pleroma_db_host}}"
   notify: restart pleroma
+  environment:
+    PGUSER: "{{pleroma_db_superuser}}"
+    PGPASSWORD: "{{pleroma_db_superpass}}"
 
 - name: migrate db
   become: yes