# We do not want to run these checks on initial deployment (`socket.rc == 0`)
- mon_group_name in group_names
- containerized_deployment
- - ceph_mon_container_stat.stdout_lines|length != 0
+ - ceph_mon_container_stat.get('stdout_lines', [])|length != 0
# This does not just restart OSDs but everything else too. Unfortunately
# at this time the ansible role does not have an OSD id list to use
# except when a crush location is specified. ceph-disk will start the osds before the osd crush location is specified
- osd_group_name in group_names
- containerized_deployment
- - ((crush_location is defined and crush_location) or ceph_osd_container_stat.stdout_lines|length != 0)
+ - ((crush_location is defined and crush_location) or ceph_osd_container_stat.get('stdout_lines', [])|length != 0)
- handler_health_osd_check
# See https://github.com/ceph/ceph-ansible/issues/1457 for the condition below
- inventory_hostname in play_hosts
# We do not want to run these checks on initial deployment (`socket.rc == 0`)
- mds_group_name in group_names
- containerized_deployment
- - ceph_mds_container_stat.stdout_lines|length != 0
+ - ceph_mds_container_stat.get('stdout_lines', [])|length != 0
- name: copy rgw restart script
template:
# We do not want to run these checks on initial deployment (`socket.rc == 0`)
- rgw_group_name in group_names
- containerized_deployment
- - ceph_rgw_container_stat.stdout_lines|length != 0
+ - ceph_rgw_container_stat.get('stdout_lines', [])|length != 0
- name: copy nfs restart script
template:
# We do not want to run these checks on initial deployment (`socket.rc == 0`)
- nfs_group_name in group_names
- containerized_deployment
- - ceph_nfs_container_stat.stdout_lines|length != 0
+ - ceph_nfs_container_stat.get('stdout_lines', [])|length != 0
- name: copy rbd mirror restart script
template:
# We do not want to run these checks on initial deployment (`socket.rc == 0`)
- rbdmirror_group_name in group_names
- containerized_deployment
- - ceph_rbd_mirror_container_stat.stdout_lines|length != 0
+ - ceph_rbd_mirror_container_stat.get('stdout_lines', [])|length != 0
- name: copy mgr restart script
template:
# We do not want to run these checks on initial deployment (`socket.rc == 0`)
- mgr_group_name in group_names
- containerized_deployment
- - ceph_mgr_container_stat.stdout_lines|length != 0
+ - ceph_mgr_container_stat.get('stdout_lines', [])|length != 0