Remove lncli/lnd before unarchiving
This commit is contained in:
parent
82ba63ab45
commit
14e57e3680
1 changed files with 9 additions and 1 deletions
|
@ -24,9 +24,17 @@
|
|||
state: stopped
|
||||
when: (lnd_binary.stat.exists == False) or (lnd_version != lnd_installed_version.stdout)
|
||||
|
||||
- name: remove old lnd files
|
||||
file:
|
||||
name: "/home/bitcoind/go/bin/{{ item }}"
|
||||
state: absent
|
||||
with_items:
|
||||
- lncli
|
||||
- lnd
|
||||
|
||||
- name: update lnd
|
||||
unarchive:
|
||||
src: 'https://github.com/lightningnetwork/lnd/releases/download/v{{ lnd_version }}/lnd-linux-{{ lnd_arch }}-v{{ lnd_version }}.tar.gz'
|
||||
src: "https://github.com/lightningnetwork/lnd/releases/download/v{{ lnd_version }}/lnd-linux-{{ lnd_arch }}-v{{ lnd_version }}.tar.gz"
|
||||
dest: /home/bitcoind/go/bin
|
||||
owner: bitcoind
|
||||
group: bitcoind
|
||||
|
|
Loading…
Reference in a new issue