From 96c049be5b8e478548f68ec7312cd299fcda1bbc Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Mon, 5 Mar 2018 18:57:29 +0100 Subject: [PATCH] common: run updatedb task on debian systems only MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The command doesn't exist on Red Hat systems so it's better to skip it instead of ignoring the error. Signed-off-by: Sébastien Han --- roles/ceph-common/tasks/misc/system_tuning.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/ceph-common/tasks/misc/system_tuning.yml b/roles/ceph-common/tasks/misc/system_tuning.yml index e183fb968..7431b3cf1 100644 --- a/roles/ceph-common/tasks/misc/system_tuning.yml +++ b/roles/ceph-common/tasks/misc/system_tuning.yml @@ -6,6 +6,7 @@ when: - ansible_os_family == "Debian" - osd_objectstore == 'filestore' + - ansible_os_family == "Debian" - name: disable osd directory path in updatedb.conf replace: @@ -16,6 +17,7 @@ when: - ansible_os_family == "Debian" - osd_objectstore == 'filestore' + - ansible_os_family == "Debian" - name: create tmpfiles.d directory file: -- 2.39.5