From 4bff3c6cd53b3d5f750b9241b8fc6bba68e2f5e8 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 8 Nov 2026 02:48:30 +0000 Subject: [PATCH] Move data-api comment out of the Jinja args expression Jinja has no comment syntax inside {{ }}, so the comment would break templating. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_018STDcc5BaYxPMNA9S8Wycs --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 7dd2305..6ebdf40 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -238,6 +238,8 @@ command: - p2pool # P2Pool takes "--opt value" only; "--opt=value" makes it exit. + # --data-api/--local-api feed the stats sidecar below. + # local/stratum lists worker IPs, so /api is never served. args: >- {{ ['--host', 'monerod', @@ -245,8 +247,6 @@ '--wallet', monero_p2pool_wallet_address, '--stratum', '0.0.0.0:3333', '--p2p', '0.0.0.0:37889', - # JSON stats for the sidecar below. local/stratum lists - # worker IPs, so /api is never served directly. '--data-api', '/api', '--local-api'] + ([] if monero_p2pool_chain == 'main' else ['--' ~ monero_p2pool_chain]) + (['--addpeers', monero_p2pool_addpeers | join(',')] if monero_p2pool_addpeers else [])