lnd/tasks/main.yaml
changeset 27 3abee15898bb
parent 21 bf53e2eb4d30
child 28 c94c54d5e61b
equal deleted inserted replaced
26:3b8585e567fe 27:3abee15898bb
    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}}/{{item.bin}}"
    23     src: "{{item}}"
    24     dest: "/usr/local/bin/"
    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: "{{lnd_tar_name}}", bin: "lnd" }
    30     - "/tmp/{{lnd_tar_name}}/lnd"
    31     - { tar: "{{lnd_tar_name}}", bin: "lncli" }
    31     - "/tmp/{{lnd_tar_name}}/lndcli"
    32     - { tar: "{{lndconnect_tar_name}}", bin: "lndconnect" }
    32     - "/tmp/{{lndconnect_tar_name}}/lndconnect"
    33   notify: restart lnd
    33   notify: restart lnd
       
    34 
       
    35 - name: install lnd-hex-macaroon script
       
    36   become: yes
       
    37   copy:
       
    38     src: "lnd-hex-macaroon"
       
    39     dest: "/usr/local/bin/"
       
    40     owner: "root"
       
    41     group: "root"
       
    42     mode: "0755"
    34 
    43 
    35 - name: create lnd data dir
    44 - name: create lnd data dir
    36   become: yes
    45   become: yes
    37   file:
    46   file:
    38     path: "{{item.path}}"
    47     path: "{{item.path}}"