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
Sébastien Han 2018-10-02 17:37:06 +02:00 committed by Guillaume Abrioux
parent 0735d39518
commit 790f52f934
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
- inventory_hostname in groups.get(mon_group_name, []) - inventory_hostname in groups.get(mon_group_name, [])
- name: check for an osd container - 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 register: ceph_osd_container_stat
changed_when: false changed_when: false
failed_when: false failed_when: false