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