加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
02-deploy_consul.yml 660 Bytes
一键复制 编辑 原始数据 按行查看 历史
Haibin Lee 提交于 2019-03-15 15:23 . REV: re-construct the inventories
# Gather facts from all hosts before next tasks
- hosts: all
# Run tasks in serial mode
- hosts: all
become: yes
serial: 1
vars_files:
- vars/search_guard_auth.yml
roles:
- deploy.Consul
post_tasks:
- block:
- name: Waiting for service consul started
wait_for:
host: "{{ bind_address }}"
port: 8600
timeout: 30
rescue:
- service:
name: consul
state: restarted
- wait_for:
host: "{{ bind_address }}"
port: 8600
timeout: 30
- include_role:
name: deploy.Consul
tasks_from: report.yml
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化