From: Sébastien Han Date: Tue, 2 Oct 2018 15:37:06 +0000 (+0200) Subject: ceph-handler: change osd container check X-Git-Tag: v3.2.0beta5~7 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=790f52f9347f5c683a2ee9007c3eec7ce82e33d5;p=ceph-ansible.git ceph-handler: change osd container check Now that the container is named ceph-osd@ 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 --- diff --git a/roles/ceph-handler/tasks/check_running_containers.yml b/roles/ceph-handler/tasks/check_running_containers.yml index 111d11274..15acc5df2 100644 --- a/roles/ceph-handler/tasks/check_running_containers.yml +++ b/roles/ceph-handler/tasks/check_running_containers.yml @@ -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