lnd/tasks/main.yaml
changeset 10 26ed67281db6
parent 9 ddf84e986362
child 21 bf53e2eb4d30
--- 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