This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
galaxy-deployment-ansible-d…/Nacos/2.0.2/role/tasks/status-check.yml
2024-01-18 15:35:34 +08:00

16 lines
517 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- name: Waiting for the Nacos Server start,sleep 60s
shell: sleep 60
- name: Check the Nacos node status
shell: source /etc/profile && curl -s http://{{ inventory_hostname }}:8847/nacos/actuator/health | grep UP | wc -l
register: check_nacos
- name: To terminate execution
fail:
msg: "检测到{{ inventory_hostname }}节点Nacos未正常启动请保留日志反馈路径{{ deploy_dir }}/{{ container_name }}/logs"
run_once: true
delegate_to: 127.0.0.1
when: check_nacos.stdout != '1'