dendrite/build/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Fri, 21 Jul 2023 15:14:24 -0500
changeset 215 dd52907adff9
parent 212 dendrite/server/tasks/main.yaml@afd4595fe1af
child 216 6c85835d4621
permissions -rw-r--r--
Split dendrite build out of install role.

---

- 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