src.nth.io/

summaryrefslogtreecommitdiff
path: root/dendrite/build/tasks/main.yaml
blob: 04b92825bfcc8ae12f1af5211622ba94c5b851bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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