From 2208920da9bf45530ef2bfe03b770864f8a21d02 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Thu, 12 Sep 2024 21:29:50 +0300 Subject: [PATCH] remove balance check --- playbook.yaml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/playbook.yaml b/playbook.yaml index a2557d3..89817f6 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -358,22 +358,22 @@ - binance_url_response.status != 200 - binance_url_response.json is not none and binance_url_response.json is not defined - - name: Get balance for the wallet - retries: 3 - delay: 30 - ansible.builtin.shell: | - response=$(curl --silent --location --request GET "https://allora-api.testnet.allora.network/cosmos/bank/v1beta1/balances/{{ wallet }}") && \ - echo "$response" && \ - uallo_balance=$(echo "$response" | jq -r '.balances[] | select(.denom == "uallo") | .amount // 0') && \ - echo "uallo_balance: $uallo_balance" && \ - if [ "$uallo_balance" -gt 100000 ]; then - echo "Balance {{ wallet }} > 100000" - else - echo "Balance {{ wallet }} < 100000" - exit 1 - fi - register: wallet_balance_check - failed_when: wallet_balance_check.rc != 0 +# - name: Get balance for the wallet +# retries: 3 +# delay: 30 +# ansible.builtin.shell: | +# response=$(curl --silent --location --request GET "https://allora-api.testnet.allora.network/cosmos/bank/v1beta1/balances/{{ wallet }}") && \ +# echo "$response" && \ +# uallo_balance=$(echo "$response" | jq -r '.balances[] | select(.denom == "uallo") | .amount // 0') && \ +# echo "uallo_balance: $uallo_balance" && \ +# if [ "$uallo_balance" -gt 100000 ]; then +# echo "Balance {{ wallet }} > 100000" +# else +# echo "Balance {{ wallet }} < 100000" +# exit 1 +# fi +# register: wallet_balance_check +# failed_when: wallet_balance_check.rc != 0 # - name: Check external IP after # ansible.builtin.command: curl https://ifconfig.me