Only stop Pleroma if there's an outstanding update

whups
This commit is contained in:
Salt 2020-07-30 09:01:32 -05:00
parent e530ab7cef
commit 15041c5079

View File

@ -73,10 +73,6 @@
website_url: "{{ pleroma_url }}"
- name: Install Pleroma
block:
- name: Disable service
systemd:
name: pleroma
state: stopped
- name: Get latest release zip
get_url:
url: "https://git.pleroma.social/api/v4/projects/2/jobs/artifacts/stable/download?job={{ pleroma_arch }}"
@ -93,6 +89,10 @@
- { src: "recover.sh", dest: "recover.sh", mode: "0755" }
- name: Install Pleroma
block:
- name: Disable service
systemd:
name: pleroma
state: stopped
- name: Unzip release
unarchive:
src: "/opt/pleroma/release.zip"