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>
- 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