mirror of https://github.com/ceph/ceph-ansible.git
ceph-handler: change osd container check
Now that the container is named ceph-osd@<id> looking for something that contains a host is not necessary. This is also backward compatible as it will continue to match container names with hostname in them. Signed-off-by: Sébastien Han <seb@redhat.com>pull/3220/head
parent
0735d39518
commit
790f52f934
|
@ -9,7 +9,7 @@
|
|||
- inventory_hostname in groups.get(mon_group_name, [])
|
||||
|
||||
- name: check for an osd container
|
||||
command: "docker ps -q --filter='name=ceph-osd-{{ ansible_hostname }}'"
|
||||
command: "docker ps -q --filter='name=ceph-osd'"
|
||||
register: ceph_osd_container_stat
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
|
Loading…
Reference in New Issue