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
|
state: stopped
|
||||||
when: (lnd_binary.stat.exists == False) or (lnd_version != lnd_installed_version.stdout)
|
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
|
- name: update lnd
|
||||||
unarchive:
|
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
|
dest: /home/bitcoind/go/bin
|
||||||
owner: bitcoind
|
owner: bitcoind
|
||||||
group: bitcoind
|
group: bitcoind
|
||||||
|
|
Loading…
Reference in a new issue