dendrite/build/tasks/main.yaml
changeset 215 dd52907adff9
parent 212 afd4595fe1af
child 216 6c85835d4621
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dendrite/build/tasks/main.yaml	Fri Jul 21 15:14:24 2023 -0500
@@ -0,0 +1,23 @@
+---
+
+- name: snap install golang
+  become: yes
+  snap: name="go" classic="yes"
+
+- name: unarchive dendrite
+  unarchive:
+    remote_src: yes
+    src: "{{dendrite_tar}}"
+    dest: "/tmp/"
+    creates: "{{dendrite_build_dir}}"
+
+- name: check if dendrite build exists
+  stat:
+    path: "{{dendrite_build_dir}}/bin"
+  register: build_file
+
+- name: build dendrite
+  command: "{{dendrite_build_dir}}/build.sh"
+  args:
+    chdir: "{{dendrite_build_dir}}"
+  when: not build_file.stat.exists