- not item.0.get("skipped")
- item.0.get("rc", 0) == 0
- not osd_auto_discovery
-
-- include: osd_fragment.yml
- when: crush_location
-
-- name: get osd id
- shell: |
- ls /var/lib/ceph/osd/ | sed 's/.*-//'
- changed_when: false
- failed_when: false
- always_run: true
- register: osd_id
-
-- name: start and add that the osd service(s) to the init sequence
- service:
- name: ceph-osd@{{ item }}
- state: started
- with_items: "{{ (osd_id|default({})).stdout_lines|default([]) }}"
- changed_when: false
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
static: False
+- name: ensure OSD daemons are started
+ include: start_osds.yml
+ when:
+ - not containerized_deployment
+ # Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
+ static: False
+
- include: ./docker/main.yml
when: containerized_deployment
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
--- /dev/null
+---
+
+- include: osd_fragment.yml
+ when: crush_location
+
+- name: get osd id
+ shell: |
+ ls /var/lib/ceph/osd/ | sed 's/.*-//'
+ changed_when: false
+ failed_when: false
+ always_run: true
+ register: osd_id
+
+- name: start and add that the osd service(s) to the init sequence
+ service:
+ name: ceph-osd@{{ item }}
+ state: started
+ with_items: "{{ (osd_id|default({})).stdout_lines|default([]) }}"
+ changed_when: false