Misc fixes
This commit is contained in:
parent
628f5611e4
commit
0ecda314bf
@ -10,7 +10,7 @@
|
|||||||
- name: assure operational directory
|
- name: assure operational directory
|
||||||
file: path={{ pleroma_home }} state=directory owner=pleroma group=pleroma mode="3775"
|
file: path={{ pleroma_home }} state=directory owner=pleroma group=pleroma mode="3775"
|
||||||
- name: assure systemd unit
|
- name: assure systemd unit
|
||||||
template: src=pleroma.service dest=/etc/systemd/system/pleroma@.service
|
template: src=pleroma.service dest=/etc/systemd/system/pleroma.service
|
||||||
notify: restart pleroma
|
notify: restart pleroma
|
||||||
- name: set up pleroma
|
- name: set up pleroma
|
||||||
block:
|
block:
|
||||||
@ -20,7 +20,7 @@
|
|||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
login_host: "{{ pleroma_db_host }}"
|
login_host: "{{ pleroma_db_host }}"
|
||||||
login_user: "{{ pleroma_db_user }}"
|
login_user: "{{ pleroma_db_user }}"
|
||||||
login_pass: "{{ pleroma_db_pass }}"
|
login_password: "{{ pleroma_db_pass }}"
|
||||||
loop:
|
loop:
|
||||||
- citext
|
- citext
|
||||||
- pg_trgm
|
- pg_trgm
|
||||||
@ -32,7 +32,7 @@
|
|||||||
- name: install pleroma
|
- name: install pleroma
|
||||||
block:
|
block:
|
||||||
- name: stop pleroma
|
- name: stop pleroma
|
||||||
systemd: name=pleroma@{{ pleroma_name }} state=stopped
|
systemd: name=pleroma state=stopped
|
||||||
- name: unzip release
|
- name: unzip release
|
||||||
unarchive: src={{ pleroma_home }}/release.zip dest={{ pleroma_home }} remote_src=yes
|
unarchive: src={{ pleroma_home }}/release.zip dest={{ pleroma_home }} remote_src=yes
|
||||||
- name: remove old release
|
- name: remove old release
|
||||||
@ -61,7 +61,7 @@
|
|||||||
template: src=config.exs dest=/etc/pleroma/config.exs owner=pleroma group=pleroma mode="0640"
|
template: src=config.exs dest=/etc/pleroma/config.exs owner=pleroma group=pleroma mode="0640"
|
||||||
notify: restart pleroma
|
notify: restart pleroma
|
||||||
- name: migrate db
|
- name: migrate db
|
||||||
command: {{ pleroma_home }}/bin/pleroma_ctl migrate
|
command: "{{ pleroma_home }}/bin/pleroma_ctl migrate"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ pleroma_home }}"
|
chdir: "{{ pleroma_home }}"
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -37,7 +37,7 @@ config :pleroma, :database, rum_enabled: false
|
|||||||
|
|
||||||
# Mail
|
# Mail
|
||||||
config :pleroma, Pleroma.Emails.Mailer,
|
config :pleroma, Pleroma.Emails.Mailer,
|
||||||
enabled: false,
|
enabled: false
|
||||||
|
|
||||||
# Theming
|
# Theming
|
||||||
config :pleroma, :frontend_configurations,
|
config :pleroma, :frontend_configurations,
|
||||||
|
@ -5,14 +5,14 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=pleroma
|
User=pleroma
|
||||||
Environment="HOME={{ pleroma_home }}/%i}"
|
Environment="HOME={{ pleroma_home }}"
|
||||||
WorkingDirectory={{ pleroma_home }}/%i
|
WorkingDirectory={{ pleroma_home }}
|
||||||
|
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
ExecStart={{ pleroma_home }}/%i/bin/pleroma start
|
ExecStart={{ pleroma_home }}/bin/pleroma start
|
||||||
ExecStop={{ pleroma_home }}/%i/bin/pleroma stop
|
ExecStop={{ pleroma_home }}/bin/pleroma stop
|
||||||
|
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
ProtectHome=true
|
ProtectHome=true
|
||||||
|
Loading…
Reference in New Issue
Block a user