We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9bc595 + 0f1ae78 commit 258629bCopy full SHA for 258629b
roles/cephadm/templates/cluster.yml.j2
@@ -2,7 +2,8 @@
2
---
3
service_type: host
4
hostname: {{ hostvars[host].ansible_facts.hostname }}
5
-addr: {{ hostvars[host].ansible_facts[cephadm_admin_interface]['ipv4']['address'] }}
+{% set cephadm_admin_interface = hostvars[host]['cephadm_admin_interface'] %}
6
+addr: {{ hostvars[host]['ansible_facts'][cephadm_admin_interface]['ipv4']['address'] }}
7
labels:
8
{% if host in groups['mons'] %}
9
- _admin
0 commit comments