diff options
| author | Luke Hoersten <[email protected]> | 2023-07-21 15:14:24 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2023-07-21 15:14:24 -0500 |
| commit | 8b9372c76e66c892741335566d1a63c29cc18ba3 (patch) | |
| tree | 6df7587a0cf80a56f9b2c47bb6bc8bfd5fa10ab4 /dendrite/build | |
| parent | ae20d50c6cbc7e881f2d8f967640d6762f0d9268 (diff) | |
Split dendrite build out of install role.
Diffstat (limited to 'dendrite/build')
| -rw-r--r-- | dendrite/build/defaults/main.yaml | 7 | ||||
| -rw-r--r-- | dendrite/build/tasks/main.yaml | 23 |
2 files changed, 30 insertions, 0 deletions
diff --git a/dendrite/build/defaults/main.yaml b/dendrite/build/defaults/main.yaml new file mode 100644 index 0000000..2f13a9d --- /dev/null +++ b/dendrite/build/defaults/main.yaml @@ -0,0 +1,7 @@ +--- + +dendrite_user: "dendrite" +dendrite_version: "0.13.1" +# https://github.com/matrix-org/dendrite/releases +dendrite_tar: "https://github.com/matrix-org/dendrite/archive/refs/tags/v{{dendrite_version}}.tar.gz" +dendrite_build_dir: "/tmp/dendrite-{{dendrite_version}}" 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 |
