mirror of https://github.com/ceph/ceph-ansible.git
ceph-facts: update external grafana fact filter
pull/4509/heade695efc
hasn't been updated with the changes introduced in9bb11c7
so the ips_in_ranges filter isn't used for an external grafana instance. Signed-off-by: Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit20b1a464ec
)
parent
af9f93f07f
commit
7bb835240e
|
@ -331,7 +331,7 @@
|
|||
|
||||
- name: set grafana_server_addr fact - ipv4 - (external instance)
|
||||
set_fact:
|
||||
grafana_server_addr: "{{ hostvars[groups.get(grafana_server_group_name, []) | first]['ansible_all_ipv4_addresses'] | ipaddr(public_network) | first }}"
|
||||
grafana_server_addr: "{{ hostvars[groups.get(grafana_server_group_name, []) | first]['ansible_all_ipv4_addresses'] | ips_in_ranges(public_network.split(',')) | first }}"
|
||||
when:
|
||||
- groups.get(grafana_server_group_name, []) | length > 0
|
||||
- ip_version == 'ipv4'
|
||||
|
@ -340,7 +340,7 @@
|
|||
|
||||
- name: set grafana_server_addr fact - ipv6 - (external instance)
|
||||
set_fact:
|
||||
grafana_server_addr: "{{ hostvars[groups.get(grafana_server_group_name, []) | first]['ansible_all_ipv6_addresses'] | ipaddr(public_network) | last | ipwrap }}"
|
||||
grafana_server_addr: "{{ hostvars[groups.get(grafana_server_group_name, []) | first]['ansible_all_ipv6_addresses'] | ips_in_ranges(public_network.split(',')) | last | ipwrap }}"
|
||||
when:
|
||||
- groups.get(grafana_server_group_name, []) | length > 0
|
||||
- ip_version == 'ipv6'
|
||||
|
|
Loading…
Reference in New Issue