src.nth.io/

summaryrefslogtreecommitdiff
path: root/pleroma/otp/tasks/install.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'pleroma/otp/tasks/install.yaml')
-rw-r--r--pleroma/otp/tasks/install.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/pleroma/otp/tasks/install.yaml b/pleroma/otp/tasks/install.yaml
new file mode 100644
index 0000000..6ca437b
--- /dev/null
+++ b/pleroma/otp/tasks/install.yaml
@@ -0,0 +1,24 @@
+---
+
+- name: download and unarchive pleroma release
+ become: yes
+ unarchive:
+ src: "{{pleroma_download_url}}"
+ dest: "/tmp/"
+ remote_src: yes
+
+- name: delete old pleroma release
+ become: yes
+ file:
+ path: "/opt/pleroma/"
+ state: "absent"
+
+- name: install pleroma release
+ become: yes
+ copy:
+ remote_src: true
+ src: "/tmp/release/"
+ dest: "/opt/pleroma/"
+ owner: "pleroma"
+ group: "pleroma"
+ notify: restart all pleroma instances