From 790f52f9347f5c683a2ee9007c3eec7ce82e33d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Tue, 2 Oct 2018 17:37:06 +0200 Subject: [PATCH] ceph-handler: change osd container check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- roles/ceph-handler/tasks/check_running_containers.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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