roles/pleroma/tasks/main.yaml
changeset 66 652a236229c2
parent 65 4538ad030906
child 67 bd34ae082697
equal deleted inserted replaced
65:4538ad030906 66:652a236229c2
    48     - "prod.secret.exs"
    48     - "prod.secret.exs"
    49   notify: restart pleroma
    49   notify: restart pleroma
    50 
    50 
    51 - name: install pleroma psql
    51 - name: install pleroma psql
    52   become: yes
    52   become: yes
    53   become_user: "postgres"
    53   become_user: "{{pleroma_db_superuser}}"
    54   command: "psql -f ~{{pleroma_user}}/pleroma/config/setup_db.psql"
    54   command: "psql -f ~{{pleroma_user}}/pleroma/config/setup_db.psql -h {{pleroma_db_host}}"
    55   notify: restart pleroma
    55   notify: restart pleroma
       
    56   environment:
       
    57     PGUSER: "{{pleroma_db_superuser}}"
       
    58     PGPASSWORD: "{{pleroma_db_superpass}}"
    56 
    59 
    57 - name: migrate db
    60 - name: migrate db
    58   become: yes
    61   become: yes
    59   become_user: "{{pleroma_user}}"
    62   become_user: "{{pleroma_user}}"
    60   command: "{{item}}"
    63   command: "{{item}}"