Made btcd and lnd arch changeable.
--- a/btcd/defaults/main.yaml Fri May 01 17:00:59 2020 -0500
+++ b/btcd/defaults/main.yaml Sun May 03 15:55:50 2020 -0500
@@ -2,7 +2,8 @@
btcd_user: "{{node_user}}"
btcd_version: "v0.20.1-beta"
-btcd_tar_name: "btcd-linux-armv7-{{btcd_version}}"
+btcd_arch: "armv7"
+btcd_tar_name: "btcd-linux-{{btcd_arch}}-{{btcd_version}}"
btcd_tar: "{{btcd_tar_name}}.tar.gz"
btcd_url: "https://github.com/btcsuite/btcd/releases/download/{{btcd_version}}/{{btcd_tar}}"
btcd_enable_txindex: true
--- a/lnd/defaults/main.yaml Fri May 01 17:00:59 2020 -0500
+++ b/lnd/defaults/main.yaml Sun May 03 15:55:50 2020 -0500
@@ -1,8 +1,9 @@
---
lnd_user: "{{node_user}}"
-lnd_version: "v0.10.0-beta.rc5"
-lnd_tar_name: "lnd-linux-armv7-{{lnd_version}}"
+lnd_version: "v0.10.0-beta"
+lnd_arch: "armv7"
+lnd_tar_name: "lnd-linux-{{lnd_arch}}-{{lnd_version}}"
lnd_tar: "{{lnd_tar_name}}.tar.gz"
lnd_url: "https://github.com/lightningnetwork/lnd/releases/download/{{lnd_version}}/{{lnd_tar}}"
--- a/node/conf/tasks/main.yaml Fri May 01 17:00:59 2020 -0500
+++ b/node/conf/tasks/main.yaml Sun May 03 15:55:50 2020 -0500
@@ -20,7 +20,7 @@
dest: "{{node_conf_dir}}/{{node_type}}.conf"
owner: "{{node_user}}"
group: "{{node_user}}"
- mode: "0770"
+ mode: "0644"
notify: restart node
- name: install node service
--- a/node/install/tasks/main.yaml Fri May 01 17:00:59 2020 -0500
+++ b/node/install/tasks/main.yaml Sun May 03 15:55:50 2020 -0500
@@ -14,5 +14,10 @@
- name: install node
become: yes
- shell: "install -m 0755 -o {{node_install_user}} -g {{node_install_user}} -t /usr/local/bin /tmp/{{node_install_tar_name}}/*"
- changed_when: false
+ copy:
+ src: "/tmp/{{node_install_tar_name}}/"
+ dest: "/usr/local/bin/"
+ remote_src: yes
+ owner: "root"
+ group: "root"
+ mode: "0755"