src.nth.io/

summaryrefslogtreecommitdiff
path: root/dendrite/build/tasks/main.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'dendrite/build/tasks/main.yaml')
-rw-r--r--dendrite/build/tasks/main.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/dendrite/build/tasks/main.yaml b/dendrite/build/tasks/main.yaml
new file mode 100644
index 0000000..04b9282
--- /dev/null
+++ b/dendrite/build/tasks/main.yaml
@@ -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