From 864b96ea8ed58283e21e6b0559d1acbf4016d536 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Thu, 12 Sep 2024 00:07:45 +0300 Subject: [PATCH] update playbook --- playbook.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/playbook.yaml b/playbook.yaml index 9526ec4..1dbd02e 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -333,7 +333,7 @@ # name: tun2socks # state: restarted - - name: Check API availability for RPC URL + - name: Check RPC availability ansible.builtin.uri: url: "{{ rpc_url }}/health?" method: GET @@ -346,7 +346,7 @@ - rpc_url_response.status != 200 - rpc_url_response.json is not none and rpc_url_response.json is not defined - - name: Check API availability for Binance URL + - name: Check Binance URL availability ansible.builtin.uri: url: "https://api.binance.com/api/v3/klines?symbol=BTCUSDT&interval=1M&limit=1" method: GET @@ -428,9 +428,9 @@ - worker-1 - worker-2 - - name: Wait success send to chain + - name: Wait success send ansible.builtin.shell: | - python3 logs_parser.py 120 + python3 logs_parser.py 30 args: chdir: "{{ ansible_env.HOME }}/basic-coin-prediction-node" register: docker_logs_check