90917100f2
To avoid many merge conflicts and re-works * Solum * iscsi * Keystone * elasticsearch Change-Id: Ibaecda35597cf39c602919b4990579f7cfc75c22 Co-Authored-By: caoyuan <cao.yuan@99cloud.net> Co-Authored-By: qiankun.zhang <zhangqiankun@sgitg.sgcc.com.cn> Partially-implements: blueprint condition-pre-check
17 lines
462 B
YAML
17 lines
462 B
YAML
---
|
|
- name: Get container facts
|
|
kolla_container_facts:
|
|
name:
|
|
- elasticsearch
|
|
register: container_facts
|
|
|
|
- name: Checking free port for Elasticsearch
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ elasticsearch_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- container_facts['elasticsearch'] is not defined
|
|
- inventory_hostname in groups['elasticsearch']
|