From 604dec37944a8b4ec79ca41497961a2ae432f340 Mon Sep 17 00:00:00 2001 From: barry Date: Sat, 17 Feb 2024 14:29:10 -0600 Subject: [PATCH] comments added inline re-ordered rpcauth.py copy to be first --- roles/apps/tasks/bitcoin.yml | 41 ++++++++++++++---------------------- 1 file changed, 16 insertions(+), 25 deletions(-) diff --git a/roles/apps/tasks/bitcoin.yml b/roles/apps/tasks/bitcoin.yml index 88f3d8d..9aed6a0 100644 --- a/roles/apps/tasks/bitcoin.yml +++ b/roles/apps/tasks/bitcoin.yml @@ -2,6 +2,13 @@ # tasks file for build # # /home/{{ ansible_user }}/.config/containers/systemd/bitcoin-node.container +- name: bitcoin - copy rpcauth.py utility + ansible.builtin.copy: + src: bitcoin/rpcauth.py + dest: ~/containers/bitcoin/rpcauth.py + mode: '0700' + tags: [apps,bitcoin] + - name: bitcoin - Check rpcauth block: - name: Generate rpcauth information if unset @@ -47,30 +54,19 @@ when: ((bitcoin_rpcuser is defined) and (bitcoin_rpcuser|length==0)) or ((bitcoin_rpcpassword is defined) and (bitcoin_rpcpassword|length==0)) or ((bitcoin_rpcauth is defined) and (bitcoin_rpcauth|length==0)) tags: [apps,bitcoin] -# Port list: -# 50001 - electrs -# 4224 - ? -# 8333 - bitcoin -# 8332 - bitcoin -# 9735 - clightning -# 3001 - clightning -# 3000 - rtl -# 5000 - lnbits - - name: bitcoin - Create bitcoin-pod containers.podman.podman_pod: name: bitcoin-pod state: started ports: - - "50001:50001" - - "4224:4224" - - "127.0.0.1:8332:8332" - - "8333:8333" - - "9735:9735" - - "3010:3010" - - "3000:3000" - - "3001:3001" - - "5000:5000" + - "50001:50001" # electrs + - "4224:4224" # + - "127.0.0.1:8332:8332" # bitcoin + - "8333:8333" # bitcoin + - "9735:9735" # clightning + - "3001:3001" # clightning (rest) + - "3000:3000" # rtl + - "5000:5000" # lnbits tags: [apps,bitcoin] - name: bitcoin - Create bitcoin data / conf directory @@ -146,9 +142,4 @@ notify: rebuild_bitcoin tags: [apps,bitcoin] -- name: bitcoin - copy rpcauth.py utility - ansible.builtin.copy: - src: bitcoin/rpcauth.py - dest: ~/containers/bitcoin/rpcauth.py - mode: '0700' - tags: [apps,bitcoin] +