update playbook
This commit is contained in:
parent
3c30999c5d
commit
864b96ea8e
@ -333,7 +333,7 @@
|
|||||||
# name: tun2socks
|
# name: tun2socks
|
||||||
# state: restarted
|
# state: restarted
|
||||||
|
|
||||||
- name: Check API availability for RPC URL
|
- name: Check RPC availability
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
url: "{{ rpc_url }}/health?"
|
url: "{{ rpc_url }}/health?"
|
||||||
method: GET
|
method: GET
|
||||||
@ -346,7 +346,7 @@
|
|||||||
- rpc_url_response.status != 200
|
- rpc_url_response.status != 200
|
||||||
- rpc_url_response.json is not none and rpc_url_response.json is not defined
|
- 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:
|
ansible.builtin.uri:
|
||||||
url: "https://api.binance.com/api/v3/klines?symbol=BTCUSDT&interval=1M&limit=1"
|
url: "https://api.binance.com/api/v3/klines?symbol=BTCUSDT&interval=1M&limit=1"
|
||||||
method: GET
|
method: GET
|
||||||
@ -428,9 +428,9 @@
|
|||||||
- worker-1
|
- worker-1
|
||||||
- worker-2
|
- worker-2
|
||||||
|
|
||||||
- name: Wait success send to chain
|
- name: Wait success send
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
python3 logs_parser.py 120
|
python3 logs_parser.py 30
|
||||||
args:
|
args:
|
||||||
chdir: "{{ ansible_env.HOME }}/basic-coin-prediction-node"
|
chdir: "{{ ansible_env.HOME }}/basic-coin-prediction-node"
|
||||||
register: docker_logs_check
|
register: docker_logs_check
|
||||||
|
Loading…
Reference in New Issue
Block a user