Some wekan fixes, some lnd fixes
This commit is contained in:
parent
b6f355b5c0
commit
ae1fa52230
6 changed files with 48 additions and 7 deletions
|
@ -7,7 +7,7 @@ admin_email_address: amarpreet@minhas.io
|
|||
hashi_arch: amd64
|
||||
|
||||
# consul
|
||||
consul_version: 1.9.1
|
||||
consul_version: 1.9.3
|
||||
consul_domain: masked.name
|
||||
|
||||
# vault
|
||||
|
@ -64,10 +64,10 @@ nomad_version: 1.0.1
|
|||
nomad_podman_driver_version: 0.1.0
|
||||
|
||||
# podman
|
||||
podman_version: 2.1.1+dfsg1-4
|
||||
podman_version: 3.0.1+dfsg1-1
|
||||
|
||||
# lnd
|
||||
lnd_version: 0.11.1-beta
|
||||
lnd_version: 0.12.1-beta
|
||||
|
||||
# lego
|
||||
lego_version: 4.1.3
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- hosts: lnd
|
||||
roles:
|
||||
- role: tor
|
||||
- role: bitcoind
|
||||
# - role: tor
|
||||
# - role: bitcoind
|
||||
- role: lnd
|
||||
...
|
||||
|
|
|
@ -18,13 +18,26 @@
|
|||
changed_when: False
|
||||
register: lnd_installed_version
|
||||
|
||||
- name: stop lnd
|
||||
systemd:
|
||||
name: lnd
|
||||
state: stopped
|
||||
when: (lnd_binary.stat.exists == False) or (lnd_version != lnd_installed_version.stdout)
|
||||
|
||||
- name: update lnd
|
||||
unarchive:
|
||||
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
|
||||
group: bitcoind
|
||||
list_files: True
|
||||
remote_src: True
|
||||
extra_opts: [--strip-components=1]
|
||||
when: (lnd_binary.stat.exists == False) or (lnd_version != lnd_installed_version)
|
||||
when: (lnd_binary.stat.exists == False) or (lnd_version != lnd_installed_version.stdout)
|
||||
|
||||
- name: ensure lnd is started
|
||||
systemd:
|
||||
name: lnd
|
||||
state: started
|
||||
enabled: true
|
||||
...
|
||||
|
|
12
ansible/roles/wekan/files/wekan.hcl
Normal file
12
ansible/roles/wekan/files/wekan.hcl
Normal file
|
@ -0,0 +1,12 @@
|
|||
services {
|
||||
id = "kanban"
|
||||
name = "kanban"
|
||||
port = 3453
|
||||
checks = [
|
||||
{
|
||||
args = ["nc", "-z", "-v", "localhost", "3453"]
|
||||
interval = "5s"
|
||||
timeout = "20s"
|
||||
}
|
||||
]
|
||||
}
|
6
ansible/roles/wekan/handlers/main.yml
Normal file
6
ansible/roles/wekan/handlers/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- name: reload consul
|
||||
service:
|
||||
name: consul
|
||||
state: reloaded
|
||||
...
|
|
@ -3,3 +3,13 @@
|
|||
snap:
|
||||
name: wekan
|
||||
state: present
|
||||
|
||||
- name: add wekan consul service
|
||||
copy:
|
||||
src: files/wekan.hcl
|
||||
dest: /etc/consul.d/wekan.hcl
|
||||
mode: 0750
|
||||
owner: consul
|
||||
group: consul
|
||||
notify: reload consul
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue