From cb0f598965d0619dd4f44a8f991af539b67c6f38 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Thu, 1 Mar 2018 17:33:33 +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 4a7d3097b..e183fb968 100644 --- a/roles/ceph-common/tasks/misc/system_tuning.yml +++ b/roles/ceph-common/tasks/misc/system_tuning.yml @@ -4,6 +4,7 @@ changed_when: false failed_when: false when: + - ansible_os_family == "Debian" - osd_objectstore == 'filestore' - name: disable osd directory path in updatedb.conf @@ -13,6 +14,7 @@ replace: '\1 /var/lib/ceph"' failed_when: false when: + - ansible_os_family == "Debian" - osd_objectstore == 'filestore' - name: create tmpfiles.d directory -- 2.39.5