From 086a4e6f22ba8d88a8143ccdadb643987d7d1dd7 Mon Sep 17 00:00:00 2001 From: spektr Date: Fri, 27 Nov 2026 07:04:16 +0100 Subject: [PATCH] CT 114: Tor-Bootstrap-Status aus dem Notice-Log statt torctl lesen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Debian 13 (trixie) shippt kein /usr/bin/torctl mehr; grep auf 'Bootstrapped …%' in /var/log/tor/notices.log stattdessen. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- .../ansible/roles/litecoin_tor/tasks/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_tor/tasks/main.yml b/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_tor/tasks/main.yml index 8efcb3a..dd22e65 100644 --- a/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_tor/tasks/main.yml +++ b/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_tor/tasks/main.yml @@ -38,13 +38,13 @@ timeout: 120 when: not ansible_check_mode -- name: Read the Tor bootstrap status +- name: Read the Tor bootstrap status from the notice log ansible.builtin.command: argv: - - /usr/bin/torctl - - --socket /run/tor/control - - getinfo - - status/bootstrap-phase + - /usr/bin/grep + - -E + - Bootstrapped [0-9]+%? + - "{{ litecoin_tor_log }}" check_mode: false changed_when: false register: litecoin_tor_bootstrap @@ -52,5 +52,5 @@ - name: Report the Tor bootstrap phase ansible.builtin.debug: - msg: "{{ litecoin_tor_bootstrap.stdout | default('check mode: skipped') }}" + msg: "{{ litecoin_tor_bootstrap.stdout_lines | default(['check mode: skipped']) | last }}" when: not ansible_check_mode