File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
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 : osd_add_result.stdout != "Created no osd(s) on host " + ansible_facts.hostname + "; already created?"
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 : >
7
- cephadm shell --
8
- ceph orch daemon add osd {{ ansible_facts.hostname }}:{{ item }}
9
- become : true
10
- when : cephadm_osd_devices | length > 0
11
- with_items : " {{ cephadm_osd_devices }}"
12
-
13
17
- name : Get cluster fsid
14
18
command :
15
19
cmd : " cephadm shell -- ceph fsid"
16
20
when : cephadm_fsid | length == 0
17
21
become : true
18
22
register : cephadm_fsid_current
23
+ changed_when : false
19
24
20
25
- name : Template out osd_spec.yml
21
26
vars :
You can’t perform that action at this time.
0 commit comments