dendrite/server/tasks/main.yaml
changeset 216 6c85835d4621
parent 215 dd52907adff9
child 227 2e0366f2dcbe
--- a/dendrite/server/tasks/main.yaml	Fri Jul 21 15:14:24 2023 -0500
+++ b/dendrite/server/tasks/main.yaml	Sat Jul 22 15:50:07 2023 -0500
@@ -4,10 +4,24 @@
   become: yes
   user: name="{{dendrite_user}}" shell="/bin/false" system="yes"
 
+- name: create unzip dir
+  become: yes
+  file:
+    path: "/tmp/dendrite/"
+    state: "directory"
+    mode: "0755"
+
+- name: unarchive dendrite bins
+  become: yes
+  unarchive:
+    remote_src: yes
+    src: "{{dendrite_tar}}"
+    dest: "/tmp/dendrite/"
+
 - name: install dendrite binary
   become: yes
   copy:
-    src: "{{dendrite_bin_dir}}/{{item.src}}"
+    src: "/tmp/dendrite/{{item.src}}"
     dest: "/usr/local/bin/{{item.dest}}"
     remote_src: yes
     owner: "root"