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/server/tasks | |
| parent | ae20d50c6cbc7e881f2d8f967640d6762f0d9268 (diff) | |
Split dendrite build out of install role.
Diffstat (limited to 'dendrite/server/tasks')
| -rw-r--r-- | dendrite/server/tasks/main.yaml | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/dendrite/server/tasks/main.yaml b/dendrite/server/tasks/main.yaml index cccae51..b25cbc8 100644 --- a/dendrite/server/tasks/main.yaml +++ b/dendrite/server/tasks/main.yaml @@ -4,40 +4,10 @@ become: yes user: name="{{dendrite_user}}" shell="/bin/false" system="yes" -# build -- name: snap install golang - become: yes - snap: name="go" classic="yes" - -- name: unarchive dendrite - become: yes - unarchive: - remote_src: yes - src: "{{dendrite_tar}}" - dest: "/tmp/" - creates: "{{dendrite_build_dir}}" - owner: "{{dendrite_user}}" - group: "{{dendrite_user}}" - -- name: check if dendrite build exists - stat: - path: "{{dendrite_build_dir}}/bin" - register: build_file - -- name: build dendrite - become: yes - become_user: "{{dendrite_user}}" - command: "{{dendrite_build_dir}}/build.sh" - args: - chdir: "{{dendrite_build_dir}}" - when: not build_file.stat.exists - notify: restart service - -# install - name: install dendrite binary become: yes copy: - src: "{{dendrite_build_dir}}/bin/{{item.src}}" + src: "{{dendrite_bin_dir}}/{{item.src}}" dest: "/usr/local/bin/{{item.dest}}" remote_src: yes owner: "root" |
