remove balance check
This commit is contained in:
parent
523f4267e8
commit
2208920da9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user