Skip to content

Commit 4de7c2e

Browse files
authored
Use ceph orch daemon to add OSDs
"cephadm daemon" isn't a valid command as far as I can tell. "ceph orch daemon ..." is correct.
1 parent 6a7967a commit 4de7c2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roles/cephadm/tasks/osds.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
block:
44
- name: Add OSDs individually
55
command:
6-
cmd: "cephadm daemon add osd {{ ansible_facts.hostname }}:{{ item }}"
6+
cmd: >
7+
cephadm shell --
8+
ceph orch daemon add osd {{ ansible_facts.hostname }}:{{ item }}
79
become: true
810
when: cephadm_osd_devices | length > 0
911
with_items: "{{ cephadm_osd_devices }}"

0 commit comments

Comments
 (0)