18 lines
548 B
YAML
18 lines
548 B
YAML
- name: Waitting for Chproxy running,10s
|
|
shell: sleep 10
|
|
|
|
- name: Check if the Chproxy process already exists
|
|
shell: docker ps -a | grep -w "galaxy-chproxy" | wc -l
|
|
register: process_out
|
|
|
|
- name: Check if the Chproxy port already exists
|
|
shell: netstat -anlp | grep "8124" | grep LISTEN | wc -l
|
|
register: port_out
|
|
|
|
- name: To terminate execution
|
|
fail:
|
|
msg: "Chproxy on node {{ inventory_hostname }} is not started. Please check"
|
|
run_once: true
|
|
delegate_to: 127.0.0.1
|
|
when: process_out.stdout != '1' or port_out.stdout != '1'
|