equal
deleted
inserted
replaced
49 src: "setup_db.psql.j2" |
49 src: "setup_db.psql.j2" |
50 dest: "/tmp/setup_db_{{pleroma_instance}}.psql" |
50 dest: "/tmp/setup_db_{{pleroma_instance}}.psql" |
51 owner: "{{pleroma_db_superuser}}" |
51 owner: "{{pleroma_db_superuser}}" |
52 group: "{{pleroma_db_superuser}}" |
52 group: "{{pleroma_db_superuser}}" |
53 mode: "0600" |
53 mode: "0600" |
54 changed_when: false |
|
55 |
54 |
56 - name: install pleroma psql |
55 - name: install pleroma psql |
57 become: yes |
56 become: yes |
58 become_user: "{{pleroma_db_superuser}}" |
57 become_user: "{{pleroma_db_superuser}}" |
59 command: "psql -f /tmp/setup_db_{{pleroma_instance}}.psql" |
58 command: "psql -f /tmp/setup_db_{{pleroma_instance}}.psql" |
62 - name: download and unarchive pleroma release |
61 - name: download and unarchive pleroma release |
63 become: yes |
62 become: yes |
64 unarchive: |
63 unarchive: |
65 src: "{{pleroma_download_url}}" |
64 src: "{{pleroma_download_url}}" |
66 dest: "/tmp/" |
65 dest: "/tmp/" |
|
66 creates: "/tmp/release" |
67 remote_src: yes |
67 remote_src: yes |
68 creates: "/tmp/release" |
|
69 notify: restart pleroma instance |
68 notify: restart pleroma instance |
70 |
69 |
71 - name: install pleroma release |
70 - name: install pleroma release |
72 become: yes |
71 become: yes |
73 copy: |
72 copy: |
76 dest: "/opt/pleroma/" |
75 dest: "/opt/pleroma/" |
77 owner: "pleroma" |
76 owner: "pleroma" |
78 group: "pleroma" |
77 group: "pleroma" |
79 changed_when: false |
78 changed_when: false |
80 |
79 |
81 - name: remove tmp release folder |
80 - name: download and unarchive soapbox frontend |
|
81 unarchive: |
|
82 src: "{{pleroma_soapbox_download_url}}" |
|
83 dest: "/tmp/" |
|
84 creates: "/tmp/static" |
|
85 remote_src: yes |
|
86 when: pleroma_soapbox |
|
87 |
|
88 - name: install soapbox frontend |
82 become: yes |
89 become: yes |
83 file: path="{{item}}" state="absent" |
90 copy: |
84 with_items: |
91 remote_src: true |
85 - "/tmp/setup_db.psql" |
92 src: "/tmp/static/" |
86 - "/tmp/release/" |
93 dest: "{{pleroma_data_dir}}/{{pleroma_instance}}/static/" |
87 when: pleroma_cleanup_tmp |
94 owner: "pleroma" |
|
95 group: "pleroma" |
|
96 mode: "0755" |
|
97 when: pleroma_soapbox |
|
98 changed_when: false |
88 |
99 |
89 - name: configure pleroma systemd service |
100 - name: configure pleroma systemd service |
90 become: yes |
101 become: yes |
91 copy: |
102 copy: |
92 src: "[email protected]" |
103 src: "[email protected]" |