Remove lncli/lnd before unarchiving

This commit is contained in:
Amarpreet Minhas 2021-07-29 23:48:23 -04:00
parent 82ba63ab45
commit 14e57e3680

View file

@ -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