From 8b9372c76e66c892741335566d1a63c29cc18ba3 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Fri, 21 Jul 2023 15:14:24 -0500 Subject: Split dendrite build out of install role. --- dendrite/build/tasks/main.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 dendrite/build/tasks/main.yaml (limited to 'dendrite/build/tasks') 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 -- cgit v1.2.3