src.nth.io/

summaryrefslogtreecommitdiff
path: root/dendrite/build/tasks
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2023-07-21 15:14:24 -0500
committerLuke Hoersten <[email protected]>2023-07-21 15:14:24 -0500
commit8b9372c76e66c892741335566d1a63c29cc18ba3 (patch)
tree6df7587a0cf80a56f9b2c47bb6bc8bfd5fa10ab4 /dendrite/build/tasks
parentae20d50c6cbc7e881f2d8f967640d6762f0d9268 (diff)
Split dendrite build out of install role.
Diffstat (limited to 'dendrite/build/tasks')
-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