- inventory_hostname in play_hosts
- mon_socket_stat.rc == 0
with_items: "{{ groups[mon_group_name] }}"
- run_once: true
delegate_to: "{{ item }}"
- name: restart ceph mon daemon(s) - container
- inventory_hostname in play_hosts
- ceph_mon_container_stat.get('stdout_lines', [])|length != 0
with_items: "{{ groups[mon_group_name] }}"
- run_once: true
delegate_to: "{{ item }}"
# This does not just restart OSDs but everything else too. Unfortunately
# See https://github.com/ceph/ceph-ansible/issues/1457 for the condition below
- inventory_hostname in play_hosts
with_items: "{{ groups[osd_group_name] }}"
- run_once: true
delegate_to: "{{ item }}"
- name: restart ceph osds daemon(s) - container
# See https://github.com/ceph/ceph-ansible/issues/1457 for the condition below
- inventory_hostname in play_hosts
with_items: "{{ groups[osd_group_name] }}"
- run_once: true
delegate_to: "{{ item }}"
- name: copy mds restart script
- inventory_hostname in play_hosts
- mds_socket_stat.rc == 0
with_items: "{{ groups[mds_group_name] }}"
- run_once: true
delegate_to: "{{ item }}"
- name: restart ceph mds daemon(s) - container
- inventory_hostname in play_hosts
- ceph_mds_container_stat.get('stdout_lines', [])|length != 0
with_items: "{{ groups[mds_group_name] }}"
- run_once: true
delegate_to: "{{ item }}"
- name: copy rgw restart script
- inventory_hostname in play_hosts
- rgw_socket_stat.rc == 0
with_items: "{{ groups[rgw_group_name] }}"
- run_once: true
delegate_to: "{{ item }}"
- name: restart ceph rgw daemon(s) - container
- inventory_hostname in play_hosts
- ceph_rgw_container_stat.get('stdout_lines', [])|length != 0
with_items: "{{ groups[rgw_group_name] }}"
- run_once: true
delegate_to: "{{ item }}"
- name: copy nfs restart script
- inventory_hostname in play_hosts
- nfs_socket_stat.rc == 0
with_items: "{{ groups[nfs_group_name] }}"
- run_once: true
delegate_to: "{{ item }}"
- name: restart ceph nfs daemon(s) - container
- inventory_hostname in play_hosts
- ceph_nfs_container_stat.get('stdout_lines', [])|length != 0
with_items: "{{ groups[nfs_group_name] }}"
- run_once: true
delegate_to: "{{ item }}"
- name: copy rbd mirror restart script
- inventory_hostname in play_hosts
- rbd_mirror_socket_stat.rc == 0
with_items: "{{ groups[rbdmirror_group_name] }}"
- run_once: true
delegate_to: "{{ item }}"
- name: restart ceph rbd mirror daemon(s) - container
- inventory_hostname in play_hosts
- ceph_rbd_mirror_container_stat.get('stdout_lines', [])|length != 0
with_items: "{{ groups[rbdmirror_group_name] }}"
- run_once: true
delegate_to: "{{ item }}"
- name: copy mgr restart script
- inventory_hostname in play_hosts
- mgr_socket_stat.rc == 0
with_items: "{{ groups[mgr_group_name] }}"
- run_once: true
delegate_to: "{{ item }}"
- name: restart ceph mgr daemon(s) - container
- inventory_hostname in play_hosts
- ceph_mgr_container_stat.get('stdout_lines', [])|length != 0
with_items: "{{ groups[mgr_group_name] }}"
- run_once: true
delegate_to: "{{ item }}"