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 11---
22- name : Bootstrap cephadm
33 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 }}"
55 monitoring_stack : " {{ '--skip-monitoring-stack' if not (cephadm_enable_monitoring | bool) else '' }}"
66 dashboard : " {{ '--skip-dashboard' if not cephadm_enable_dashboard | bool else '' }}"
77 firewalld : " {{ '--skip-firewalld' if not cephadm_enable_firewalld | bool else '' }}"
Original file line number Diff line number Diff line change 33service_type: host
44hostname: {{ hostvars[host] .ansible_facts.nodename }}
55{% 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'] }}
77labels:
88{% if host in groups ['mons' ] %}
99 - _admin
You can’t perform that action at this time.
0 commit comments