ceph-grafana: remove ipv6 brakets on wait_for

The wait_for ansible module doesn't support the backets on IPv6 address
so need to remove them.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1769710

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
pull/4778/head
Dimitri Savineau 2019-11-25 15:58:27 -05:00 committed by Guillaume Abrioux
parent 5353ab8a23
commit 55adc10be3
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
- name: wait for grafana to be stopped
wait_for:
host: '{{ grafana_server_addr }}'
host: '{{ grafana_server_addr if ip_version == "ipv4" else grafana_server_addr[1:-1] }}'
port: '{{ grafana_port }}'
state: stopped
@ -107,5 +107,5 @@
- name: wait for grafana to start
wait_for:
host: '{{ grafana_server_addr }}'
host: '{{ grafana_server_addr if ip_version == "ipv4" else grafana_server_addr[1:-1] }}'
port: '{{ grafana_port }}'