2016-11-03 14:48:58 +08:00
|
|
|
---
|
2017-01-02 21:48:07 +08:00
|
|
|
- name: Get container facts
|
|
|
|
kolla_container_facts:
|
|
|
|
name:
|
|
|
|
- grafana
|
|
|
|
register: container_facts
|
|
|
|
|
|
|
|
- name: Checking free port for Grafana server
|
|
|
|
wait_for:
|
2017-04-18 09:10:44 +02:00
|
|
|
host: "{{ api_interface_address }}"
|
2017-01-02 21:48:07 +08:00
|
|
|
port: "{{ grafana_server_port }}"
|
|
|
|
connect_timeout: 1
|
2017-05-04 08:52:57 +08:00
|
|
|
timeout: 1
|
2017-01-02 21:48:07 +08:00
|
|
|
state: stopped
|
|
|
|
when:
|
|
|
|
- container_facts['grafana'] is not defined
|
|
|
|
- inventory_hostname in groups['grafana']
|