From 0ffbe5e388e160e21381c2101949d29ca73ec68a Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Fri, 15 Sep 2023 22:45:51 -0500 Subject: Moved lnurld from my general ansible roles repo to the btc specific repo. --- lnurld/build/tasks/main.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 lnurld/build/tasks/main.yaml (limited to 'lnurld/build/tasks') diff --git a/lnurld/build/tasks/main.yaml b/lnurld/build/tasks/main.yaml new file mode 100644 index 0000000..593a6c9 --- /dev/null +++ b/lnurld/build/tasks/main.yaml @@ -0,0 +1,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 -- cgit v1.2.3