Replies: 2 comments
-
Take a look at https://github.com/lightninglabs/lndinit which is a tool dedicated to automated node provisioning. |
Beta Was this translation helpful? Give feedback.
0 replies
-
If anyone end up here, here's my current solution - stat: path=/data/lnd/tls.cert.tmp
register: s
- name: LND - Create wallet
ansible.builtin.expect:
command: 'lncli --tlscertpath /data/lnd/tls.cert.tmp create'
responses:
'Input wallet password:': '{{ lnd_password }}'
'Confirm password:': '{{ lnd_password }}'
'(Enter y/x/n)': "{{ 'y' if lnd_seed_phrase else 'n' }}"
'Input your 24-word mnemonic separated by spaces: ': '{{ lnd_seed_phrase }}'
'Input your cipher seed passphrase': '{{ lnd_seed_phrase_cipher }}'
'Input an optional address look-ahead': ''
become: true
become_user: lnd
when: s.stat.exists |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to follow a tutorial and create an ansible-playbook of it.
Is there a way to call
lncli create
and set the password in the same command, aka non-interactive?Beta Was this translation helpful? Give feedback.
All reactions