Updated bitcoind and lnd.
authorLuke Hoersten <luke@hoersten.org>
Sun, 07 Jun 2020 11:11:08 -0500
changeset 10 26ed67281db6
parent 9 ddf84e986362
child 11 386d0041f8bb
Updated bitcoind and lnd.
bitcoind/defaults/main.yaml
bitcoind/tasks/main.yaml
bitcoind/templates/bitcoin.conf.j2
lnd/defaults/main.yaml
lnd/tasks/main.yaml
--- a/bitcoind/defaults/main.yaml	Sat May 16 17:59:15 2020 -0500
+++ b/bitcoind/defaults/main.yaml	Sun Jun 07 11:11:08 2020 -0500
@@ -1,7 +1,7 @@
 ---
 
 bitcoind_user: "bitcoin"
-bitcoind_version: "0.19.1"
+bitcoind_version: "0.20.0"
 bitcoind_arch: "{{ansible_architecture}}"
 bitcoind_url: "https://bitcoin.org/bin/bitcoin-core-{{bitcoind_version}}/bitcoin-{{bitcoind_version}}-{{bitcoind_arch}}-linux-gnu.tar.gz"
 bitcoind_conf_dir: "/home/{{bitcoind_user}}/.bitcoin"
--- a/bitcoind/tasks/main.yaml	Sat May 16 17:59:15 2020 -0500
+++ b/bitcoind/tasks/main.yaml	Sun Jun 07 11:11:08 2020 -0500
@@ -4,7 +4,7 @@
   become: yes
   user: name="{{bitcoind_user}}"
 
-- name: unarchive bitcoind
+- name: download bitcoind
   become: yes
   unarchive:
     remote_src: yes
@@ -24,6 +24,7 @@
   loop:
     - "bitcoind"
     - "bitcoin-cli"
+  notify: restart bitcoind
 
 - name: create bitcoind data dir
   become: yes
--- a/bitcoind/templates/bitcoin.conf.j2	Sat May 16 17:59:15 2020 -0500
+++ b/bitcoind/templates/bitcoin.conf.j2	Sun Jun 07 11:11:08 2020 -0500
@@ -3,9 +3,12 @@
 
 datadir={{bitcoind_data_dir}}
 logdir={{bitcoind_log_dir}}
-debug=rpc
+
+disablewallet=1
+maxuploadtarget=5000
 
 server=1
+rpcallowip=127.0.0.1
 rpcuser={{bitcoind_rpc_user}}
 rpcpassword={{bitcoind_rpc_pass}}
 
--- a/lnd/defaults/main.yaml	Sat May 16 17:59:15 2020 -0500
+++ b/lnd/defaults/main.yaml	Sun Jun 07 11:11:08 2020 -0500
@@ -1,7 +1,7 @@
 ---
 
 lnd_user: "{{node_user}}"
-lnd_version: "v0.10.0-beta"
+lnd_version: "v0.10.1-beta"
 lnd_arch: "armv7"
 lnd_tar_name: "lnd-linux-{{lnd_arch}}-{{lnd_version}}"
 lnd_tar: "{{lnd_tar_name}}.tar.gz"
--- a/lnd/tasks/main.yaml	Sat May 16 17:59:15 2020 -0500
+++ b/lnd/tasks/main.yaml	Sun Jun 07 11:11:08 2020 -0500
@@ -4,7 +4,7 @@
   become: yes
   user: name="{{lnd_user}}"
 
-- name: unarchive lnd
+- name: download lnd
   become: yes
   unarchive:
     remote_src: yes
@@ -20,20 +20,17 @@
 - name: install lnd
   become: yes
   copy:
-    src: "/tmp/{{item.tar_name}}/"
-    dest: "/usr/local/bin/{{item.bins}}"
+    src: "/tmp/{{item.tar}}/{{item.bin}}"
+    dest: "/usr/local/bin/"
     remote_src: yes
     owner: "root"
     group: "root"
     mode: "0755"
   loop:
-    - tar_name: "{{lnd_tar_name}}"
-      bins:
-        - "lnd"
-        - "lncli"
-    - tar_name: "{{lndconnect_tar_name}}"
-      bins:
-        - "lndconnect"
+    - { tar: "{{lnd_tar_name}}", bin: "lnd" }
+    - { tar: "{{lnd_tar_name}}", bin: "lncli" }
+    - { tar: "{{lndconnect_tar_name}}", bin: "lndconnect" }
+  notify: restart lnd
 
 - name: create lnd data dir
   become: yes