dendrite/build/tasks/main.yaml
changeset 215 dd52907adff9
parent 212 afd4595fe1af
child 216 6c85835d4621
equal deleted inserted replaced
214:3069b7d001f7 215:dd52907adff9
       
     1 ---
       
     2 
       
     3 - name: snap install golang
       
     4   become: yes
       
     5   snap: name="go" classic="yes"
       
     6 
       
     7 - name: unarchive dendrite
       
     8   unarchive:
       
     9     remote_src: yes
       
    10     src: "{{dendrite_tar}}"
       
    11     dest: "/tmp/"
       
    12     creates: "{{dendrite_build_dir}}"
       
    13 
       
    14 - name: check if dendrite build exists
       
    15   stat:
       
    16     path: "{{dendrite_build_dir}}/bin"
       
    17   register: build_file
       
    18 
       
    19 - name: build dendrite
       
    20   command: "{{dendrite_build_dir}}/build.sh"
       
    21   args:
       
    22     chdir: "{{dendrite_build_dir}}"
       
    23   when: not build_file.stat.exists