2017-09-28 00:22:15 +08:00
|
|
|
---
|
|
|
|
- name: check for a mon container
|
2021-03-03 22:43:50 +08:00
|
|
|
command: "{{ container_binary }} ps -q --filter='name=ceph-mon-{{ ansible_facts['hostname'] }}'"
|
2017-09-28 00:22:15 +08:00
|
|
|
register: ceph_mon_container_stat
|
|
|
|
changed_when: false
|
|
|
|
failed_when: false
|
2017-10-25 22:53:34 +08:00
|
|
|
check_mode: no
|
2019-04-01 23:46:15 +08:00
|
|
|
when: inventory_hostname in groups.get(mon_group_name, [])
|
2017-09-28 00:22:15 +08:00
|
|
|
|
|
|
|
- name: check for an osd container
|
2018-11-08 17:02:37 +08:00
|
|
|
command: "{{ container_binary }} ps -q --filter='name=ceph-osd'"
|
2017-09-28 00:22:15 +08:00
|
|
|
register: ceph_osd_container_stat
|
|
|
|
changed_when: false
|
|
|
|
failed_when: false
|
2017-10-25 22:53:34 +08:00
|
|
|
check_mode: no
|
2019-04-01 23:46:15 +08:00
|
|
|
when: inventory_hostname in groups.get(osd_group_name, [])
|
2017-09-28 00:22:15 +08:00
|
|
|
|
|
|
|
- name: check for a mds container
|
2021-03-03 22:43:50 +08:00
|
|
|
command: "{{ container_binary }} ps -q --filter='name=ceph-mds-{{ ansible_facts['hostname'] }}'"
|
2017-09-28 00:22:15 +08:00
|
|
|
register: ceph_mds_container_stat
|
|
|
|
changed_when: false
|
|
|
|
failed_when: false
|
2017-10-25 22:53:34 +08:00
|
|
|
check_mode: no
|
2019-04-01 23:46:15 +08:00
|
|
|
when: inventory_hostname in groups.get(mds_group_name, [])
|
2017-09-28 00:22:15 +08:00
|
|
|
|
|
|
|
- name: check for a rgw container
|
2021-03-03 22:43:50 +08:00
|
|
|
command: "{{ container_binary }} ps -q --filter='name=ceph-rgw-{{ ansible_facts['hostname'] }}'"
|
2017-09-28 00:22:15 +08:00
|
|
|
register: ceph_rgw_container_stat
|
|
|
|
changed_when: false
|
|
|
|
failed_when: false
|
2017-10-25 22:53:34 +08:00
|
|
|
check_mode: no
|
2019-04-01 23:46:15 +08:00
|
|
|
when: inventory_hostname in groups.get(rgw_group_name, [])
|
2017-09-28 00:22:15 +08:00
|
|
|
|
|
|
|
- name: check for a mgr container
|
2021-03-03 22:43:50 +08:00
|
|
|
command: "{{ container_binary }} ps -q --filter='name=ceph-mgr-{{ ansible_facts['hostname'] }}'"
|
2017-09-28 00:22:15 +08:00
|
|
|
register: ceph_mgr_container_stat
|
|
|
|
changed_when: false
|
|
|
|
failed_when: false
|
2017-10-25 22:53:34 +08:00
|
|
|
check_mode: no
|
2019-04-01 23:46:15 +08:00
|
|
|
when: inventory_hostname in groups.get(mgr_group_name, [])
|
2017-09-28 00:22:15 +08:00
|
|
|
|
|
|
|
- name: check for a rbd mirror container
|
2021-03-03 22:43:50 +08:00
|
|
|
command: "{{ container_binary }} ps -q --filter='name=ceph-rbd-mirror-{{ ansible_facts['hostname'] }}'"
|
2017-09-28 00:22:15 +08:00
|
|
|
register: ceph_rbd_mirror_container_stat
|
|
|
|
changed_when: false
|
|
|
|
failed_when: false
|
2017-10-25 22:53:34 +08:00
|
|
|
check_mode: no
|
2019-04-01 23:46:15 +08:00
|
|
|
when: inventory_hostname in groups.get(rbdmirror_group_name, [])
|
2017-09-28 00:22:15 +08:00
|
|
|
|
|
|
|
- name: check for a nfs container
|
2021-03-03 22:43:50 +08:00
|
|
|
command: "{{ container_binary }} ps -q --filter='name=ceph-nfs-{{ ceph_nfs_service_suffix | default(ansible_facts['hostname']) }}'"
|
2017-09-28 00:22:15 +08:00
|
|
|
register: ceph_nfs_container_stat
|
|
|
|
changed_when: false
|
|
|
|
failed_when: false
|
2017-10-25 22:53:34 +08:00
|
|
|
check_mode: no
|
2019-04-01 23:46:15 +08:00
|
|
|
when: inventory_hostname in groups.get(nfs_group_name, [])
|
2018-03-23 11:24:56 +08:00
|
|
|
|
|
|
|
- name: check for a tcmu-runner container
|
2018-11-08 17:02:37 +08:00
|
|
|
command: "{{ container_binary }} ps -q --filter='name=tcmu-runner'"
|
2018-03-23 11:24:56 +08:00
|
|
|
register: ceph_tcmu_runner_stat
|
|
|
|
changed_when: false
|
|
|
|
failed_when: false
|
|
|
|
check_mode: no
|
2019-04-01 23:46:15 +08:00
|
|
|
when: inventory_hostname in groups.get(iscsi_gw_group_name, [])
|
2018-03-23 11:24:56 +08:00
|
|
|
|
|
|
|
- name: check for a rbd-target-api container
|
2018-11-08 17:02:37 +08:00
|
|
|
command: "{{ container_binary }} ps -q --filter='name=rbd-target-api'"
|
2018-03-23 11:24:56 +08:00
|
|
|
register: ceph_rbd_target_api_stat
|
|
|
|
changed_when: false
|
|
|
|
failed_when: false
|
|
|
|
check_mode: no
|
2019-04-01 23:46:15 +08:00
|
|
|
when: inventory_hostname in groups.get(iscsi_gw_group_name, [])
|
2018-03-23 11:24:56 +08:00
|
|
|
|
|
|
|
- name: check for a rbd-target-gw container
|
2018-11-08 17:02:37 +08:00
|
|
|
command: "{{ container_binary }} ps -q --filter='name=rbd-target-gw'"
|
2018-03-23 11:24:56 +08:00
|
|
|
register: ceph_rbd_target_gw_stat
|
|
|
|
changed_when: false
|
|
|
|
failed_when: false
|
|
|
|
check_mode: no
|
2019-04-01 23:46:15 +08:00
|
|
|
when: inventory_hostname in groups.get(iscsi_gw_group_name, [])
|
2020-07-03 16:21:49 +08:00
|
|
|
|
|
|
|
- name: check for a ceph-crash container
|
2021-03-03 22:43:50 +08:00
|
|
|
command: "{{ container_binary }} ps -q --filter='name=ceph-crash-{{ ansible_facts['hostname'] }}'"
|
2020-07-03 16:21:49 +08:00
|
|
|
register: ceph_crash_container_stat
|
|
|
|
changed_when: false
|
|
|
|
failed_when: false
|
2020-07-22 03:14:30 +08:00
|
|
|
check_mode: no
|
|
|
|
when:
|
|
|
|
- inventory_hostname in groups.get(mon_group_name, [])
|
|
|
|
or inventory_hostname in groups.get(mgr_group_name, [])
|
|
|
|
or inventory_hostname in groups.get(osd_group_name, [])
|
|
|
|
or inventory_hostname in groups.get(mds_group_name, [])
|
|
|
|
or inventory_hostname in groups.get(rgw_group_name, [])
|
|
|
|
or inventory_hostname in groups.get(rbdmirror_group_name, [])
|