lnd/tasks/main.yaml
changeset 10 26ed67281db6
parent 9 ddf84e986362
child 21 bf53e2eb4d30
equal deleted inserted replaced
9:ddf84e986362 10:26ed67281db6
     2 
     2 
     3 - name: add lnd user
     3 - name: add lnd user
     4   become: yes
     4   become: yes
     5   user: name="{{lnd_user}}"
     5   user: name="{{lnd_user}}"
     6 
     6 
     7 - name: unarchive lnd
     7 - name: download lnd
     8   become: yes
     8   become: yes
     9   unarchive:
     9   unarchive:
    10     remote_src: yes
    10     remote_src: yes
    11     src: "{{item.url}}"
    11     src: "{{item.url}}"
    12     dest: "/tmp"
    12     dest: "/tmp"
    18       tar_name: "{{lndconnect_tar_name}}"
    18       tar_name: "{{lndconnect_tar_name}}"
    19 
    19 
    20 - name: install lnd
    20 - name: install lnd
    21   become: yes
    21   become: yes
    22   copy:
    22   copy:
    23     src: "/tmp/{{item.tar_name}}/"
    23     src: "/tmp/{{item.tar}}/{{item.bin}}"
    24     dest: "/usr/local/bin/{{item.bins}}"
    24     dest: "/usr/local/bin/"
    25     remote_src: yes
    25     remote_src: yes
    26     owner: "root"
    26     owner: "root"
    27     group: "root"
    27     group: "root"
    28     mode: "0755"
    28     mode: "0755"
    29   loop:
    29   loop:
    30     - tar_name: "{{lnd_tar_name}}"
    30     - { tar: "{{lnd_tar_name}}", bin: "lnd" }
    31       bins:
    31     - { tar: "{{lnd_tar_name}}", bin: "lncli" }
    32         - "lnd"
    32     - { tar: "{{lndconnect_tar_name}}", bin: "lndconnect" }
    33         - "lncli"
    33   notify: restart lnd
    34     - tar_name: "{{lndconnect_tar_name}}"
       
    35       bins:
       
    36         - "lndconnect"
       
    37 
    34 
    38 - name: create lnd data dir
    35 - name: create lnd data dir
    39   become: yes
    36   become: yes
    40   file:
    37   file:
    41     path: "{{item.path}}"
    38     path: "{{item.path}}"