Skip to content

Commit 258629b

Browse files
authored
Merge pull request #73 from /issues/70
Bugfix: Fetch interface names per host properly
2 parents d9bc595 + 0f1ae78 commit 258629b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roles/cephadm/templates/cluster.yml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
---
33
service_type: host
44
hostname: {{ hostvars[host].ansible_facts.hostname }}
5-
addr: {{ hostvars[host].ansible_facts[cephadm_admin_interface]['ipv4']['address'] }}
5+
{% set cephadm_admin_interface = hostvars[host]['cephadm_admin_interface'] %}
6+
addr: {{ hostvars[host]['ansible_facts'][cephadm_admin_interface]['ipv4']['address'] }}
67
labels:
78
{% if host in groups['mons'] %}
89
- _admin

0 commit comments

Comments
 (0)