Skip to content

Commit e6fbda8

Browse files
committed
standardised control ip resolution
1 parent 8d242f7 commit e6fbda8

File tree

1 file changed

+1
-1
lines changed
  • ansible/roles/kube_prometheus_stack/defaults/main

1 file changed

+1
-1
lines changed

ansible/roles/kube_prometheus_stack/defaults/main/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ kube_prometheus_stack_release_name: kube-prometheus-stack
1212
# The timeout to wait for the release to become ready
1313
kube_prometheus_stack_wait_timeout: 5m
1414

15-
control_ip: "{{ ansible_default_ipv4.address| default(ansible_all_ipv4_addresses[0]) }}"
15+
control_ip: "{{ hostvars[groups['control'].0].ansible_host }}"
1616

1717
grafana_auth_anonymous: false
1818

0 commit comments

Comments
 (0)