remove balance check
This commit is contained in:
parent
523f4267e8
commit
2208920da9
@ -358,22 +358,22 @@
|
|||||||
- binance_url_response.status != 200
|
- binance_url_response.status != 200
|
||||||
- binance_url_response.json is not none and binance_url_response.json is not defined
|
- binance_url_response.json is not none and binance_url_response.json is not defined
|
||||||
|
|
||||||
- name: Get balance for the wallet
|
# - name: Get balance for the wallet
|
||||||
retries: 3
|
# retries: 3
|
||||||
delay: 30
|
# delay: 30
|
||||||
ansible.builtin.shell: |
|
# ansible.builtin.shell: |
|
||||||
response=$(curl --silent --location --request GET "https://allora-api.testnet.allora.network/cosmos/bank/v1beta1/balances/{{ wallet }}") && \
|
# response=$(curl --silent --location --request GET "https://allora-api.testnet.allora.network/cosmos/bank/v1beta1/balances/{{ wallet }}") && \
|
||||||
echo "$response" && \
|
# echo "$response" && \
|
||||||
uallo_balance=$(echo "$response" | jq -r '.balances[] | select(.denom == "uallo") | .amount // 0') && \
|
# uallo_balance=$(echo "$response" | jq -r '.balances[] | select(.denom == "uallo") | .amount // 0') && \
|
||||||
echo "uallo_balance: $uallo_balance" && \
|
# echo "uallo_balance: $uallo_balance" && \
|
||||||
if [ "$uallo_balance" -gt 100000 ]; then
|
# if [ "$uallo_balance" -gt 100000 ]; then
|
||||||
echo "Balance {{ wallet }} > 100000"
|
# echo "Balance {{ wallet }} > 100000"
|
||||||
else
|
# else
|
||||||
echo "Balance {{ wallet }} < 100000"
|
# echo "Balance {{ wallet }} < 100000"
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
# fi
|
||||||
register: wallet_balance_check
|
# register: wallet_balance_check
|
||||||
failed_when: wallet_balance_check.rc != 0
|
# failed_when: wallet_balance_check.rc != 0
|
||||||
|
|
||||||
# - name: Check external IP after
|
# - name: Check external IP after
|
||||||
# ansible.builtin.command: curl https://ifconfig.me
|
# ansible.builtin.command: curl https://ifconfig.me
|
||||||
|
Loading…
Reference in New Issue
Block a user