with_items:
- noout
- norebalance
- - noscrub
- - nodeep-scrub
delegate_to: "{{ mon_host }}"
when: not containerized_deployment
with_items:
- noout
- norebalance
- - noscrub
- - nodeep-scrub
delegate_to: "{{ mon_host }}"
when: containerized_deployment
command: "{{ docker_exec_cmd_update_osd|default('') }} ceph --cluster {{ cluster }} -s --format json"
register: ceph_health_post
until: >
- ((ceph_health_post.stdout | from_json).pgmap.pgs_by_state | length) == 1
- and
- (ceph_health_post.stdout | from_json).pgmap.pgs_by_state.0.state_name == "active+clean"
+ ((ceph_health_post.stdout | from_json).pgmap.pgs_by_state | selectattr('state_name', 'search', '^active\\+clean') | map(attribute='count') | list | sum) == (ceph_pgs.stdout | from_json).pgmap.num_pgs
delegate_to: "{{ groups[mon_group_name][0] }}"
retries: "{{ health_osd_check_retries }}"
delay: "{{ health_osd_check_delay }}"
with_items:
- noout
- norebalance
- - noscrub
- - nodeep-scrub
delegate_to: "{{ groups[mon_group_name][0] }}"
- name: get osd versions