roles/pleroma/tasks/main.yaml
changeset 62 63586cf10d46
parent 60 48a3a65119d5
child 63 56531bbfd074
equal deleted inserted replaced
61:2dd82d9e2103 62:63586cf10d46
    52   become: yes
    52   become: yes
    53   become_user: "{{pleroma_user}}"
    53   become_user: "{{pleroma_user}}"
    54   with_items:
    54   with_items:
    55     - "setup_db.psql"
    55     - "setup_db.psql"
    56     - "dev.secret.exs"
    56     - "dev.secret.exs"
       
    57   notify: restart pleroma
    57 
    58 
    58 - name: install pleroma psql
    59 - name: install pleroma psql
    59   become: yes
    60   become: yes
    60   become_user: "postgres"
    61   become_user: "postgres"
    61   command: "psql -f ~{{pleroma_user}}/pleroma/config/setup_db.psql"
    62   command: "psql -f ~{{pleroma_user}}/pleroma/config/setup_db.psql"
       
    63   notify: restart pleroma
    62 
    64 
    63 - name: migrate db
    65 - name: migrate db
    64   become: yes
    66   become: yes
    65   become_user: "{{pleroma_user}}"
    67   become_user: "{{pleroma_user}}"
    66   command: "{{item}}"
    68   command: "{{item}}"
    69   with_items:
    71   with_items:
    70     - "mix local.hex --force"
    72     - "mix local.hex --force"
    71     - "mix local.rebar --force"
    73     - "mix local.rebar --force"
    72     - "mix deps.get"
    74     - "mix deps.get"
    73     - "mix ecto.migrate"
    75     - "mix ecto.migrate"
       
    76   notify: restart pleroma
    74 
    77 
    75 - name: install pleroma systemd service
    78 - name: install pleroma systemd service
    76   template:
    79   template:
    77     src: "pleroma.service.j2"
    80     src: "pleroma.service.j2"
    78     dest: "/lib/systemd/system/pleroma.service"
    81     dest: "/lib/systemd/system/pleroma.service"