File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3
3
block :
4
4
- name : Bootstrap cephadm
5
5
vars :
6
- mon_ip : " {{ hostvars[inventory_hostname]['ansible_'~ cephadm_public_interface].ipv4.address }}"
6
+ mon_ip : " {{ hostvars[inventory_hostname].ansible_facts[ cephadm_public_interface].ipv4.address }}"
7
7
monitoring_stack : " {{ '--skip-monitoring-stack' if not (cephadm_enable_monitoring | bool) else '' }}"
8
8
dashboard : " {{ '--skip-dashboard' if not cephadm_enable_dashboard | bool else '' }}"
9
9
firewalld : " {{ '--skip-firewalld' if not cephadm_enable_firewalld | bool else '' }}"
Original file line number Diff line number Diff line change 5
5
- include_tasks : " prechecks.yml"
6
6
when : not cephadm_skip_prechecks | bool
7
7
8
- - include_tasks : " pkg_{{ ansible_os_family | lower }}.yml"
8
+ - include_tasks : " pkg_{{ ansible_facts.os_family | lower }}.yml"
9
9
10
10
- include_tasks : " prereqs.yml"
11
11
Original file line number Diff line number Diff line change 3
3
block :
4
4
- name : Add OSDs individually
5
5
command :
6
- cmd : " cephadm daemon add osd {{ ansible_hostname }}:{{ item }}"
6
+ cmd : " cephadm daemon add osd {{ ansible_facts.hostname }}:{{ item }}"
7
7
become : true
8
8
when : cephadm_osd_devices | length > 0
9
9
with_items : " {{ cephadm_osd_devices }}"
Original file line number Diff line number Diff line change 7
7
8
8
- name : Ensure Ceph repositories are defined
9
9
apt_repository :
10
- repo : " deb https://download.ceph.com/debian-{{ item }}/ {{ ansible_distribution_release }} main"
10
+ repo : " deb https://download.ceph.com/debian-{{ item }}/ {{ ansible_facts.distribution_release }} main"
11
11
state : " {{ 'present' if item == cephadm_ceph_release else 'absent' }}"
12
12
when : not cephadm_custom_repos | bool
13
13
become : true
Original file line number Diff line number Diff line change 1
1
{% for host in groups ['ceph' ] %}
2
2
---
3
3
service_type: host
4
- hostname: {{ hostvars[host] ['ansible_hostname '] }}
5
- addr: {{ hostvars[host] ['ansible_'~ cephadm_admin_interface] ['ipv4'] ['address'] }}
4
+ hostname: {{ hostvars[host] .ansible_facts.hostname }}
5
+ addr: {{ hostvars[host] .ansible_facts[ cephadm_admin_interface] ['ipv4'] ['address'] }}
6
6
labels:
7
7
{% if host in groups ['mons' ] %}
8
8
- _admin
You can’t perform that action at this time.
0 commit comments