File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Bootstrap cephadm
3
3
vars :
4
- mon_ip : " {{ hostvars[inventory_hostname].ansible_facts[cephadm_public_interface].ipv4.address }}"
4
+ mon_ip : " {{ hostvars[inventory_hostname].ansible_facts[cephadm_public_interface | replace('-', '_') ].ipv4.address }}"
5
5
monitoring_stack : " {{ '--skip-monitoring-stack' if not (cephadm_enable_monitoring | bool) else '' }}"
6
6
dashboard : " {{ '--skip-dashboard' if not cephadm_enable_dashboard | bool else '' }}"
7
7
firewalld : " {{ '--skip-firewalld' if not cephadm_enable_firewalld | bool else '' }}"
Original file line number Diff line number Diff line change 3
3
service_type: host
4
4
hostname: {{ hostvars[host] .ansible_facts.nodename }}
5
5
{% set cephadm_admin_interface = hostvars [host ]['cephadm_admin_interface' ] %}
6
- addr: {{ hostvars[host] ['ansible_facts'] [cephadm_admin_interface] ['ipv4'] ['address'] }}
6
+ addr: {{ hostvars[host] ['ansible_facts'] [cephadm_admin_interface | replace('-', '_' ) ] ['ipv4'] ['address'] }}
7
7
labels:
8
8
{% if host in groups ['mons' ] %}
9
9
- _admin
You can’t perform that action at this time.
0 commit comments