File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
+
3
+ - name : Add OSDs individually
4
+ command :
5
+ cmd : >
6
+ cephadm shell --
7
+ ceph orch daemon add osd {{ ansible_facts.hostname }}:{{ item }}
8
+ become : true
9
+ register : osd_add_result
10
+ changed_when : not osd_add_result.stdout.startswith("Created no osd(s) on host")
11
+ delegate_to : " {{ omit if 'mons' in group_names else groups['mons'][0] }}"
12
+ when : cephadm_osd_devices | length > 0
13
+ with_items : " {{ cephadm_osd_devices }}"
14
+
2
15
- name : Add OSDs
3
16
block :
4
- - name : Add OSDs individually
5
- command :
6
- cmd : " cephadm daemon add osd {{ ansible_facts.hostname }}:{{ item }}"
7
- become : true
8
- when : cephadm_osd_devices | length > 0
9
- with_items : " {{ cephadm_osd_devices }}"
10
-
11
17
- name : Get cluster fsid
12
18
command :
13
19
cmd : " cephadm shell -- ceph fsid"
14
20
when : cephadm_fsid | length == 0
15
21
become : true
16
22
register : cephadm_fsid_current
23
+ changed_when : false
17
24
18
25
- name : Template out osd_spec.yml
19
26
vars :
You can’t perform that action at this time.
0 commit comments