blob: 593a6c9e90ddf11942e3d2dab9a881f2ecd47a94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
---
- name: install golang
become: yes
apt: name="golang-go"
- name: git checkout lnurld
git:
repo: "{{lnurld_git}}"
dest: "{{lnurld_build_dir}}"
- name: check if build exists
stat:
path: "{{lnurld_build_dir}}/lnurld"
register: build_file
- name: build
command: "go build"
args:
chdir: "/tmp/lnurld/"
when: not build_file.stat.exists
- name: create build server dir
become: yes
file:
path: "{{lnurld_srv_dir}}"
mode: "0755"
state: "directory"
when: not build_file.stat.exists
- name: copy bin to build server dir
become: yes
copy:
remote_src: yes
src: "{{lnurld_build_dir}}/lnurld"
dest: "{{lnurld_srv_dir}}/lnurld"
when: not build_file.stat.exists
|