From: Sébastien Han Date: Mon, 5 Mar 2018 17:57:29 +0000 (+0100) Subject: common: run updatedb task on debian systems only X-Git-Tag: v3.1.0beta4~17 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=96c049be5b8e478548f68ec7312cd299fcda1bbc;p=ceph-ansible.git common: run updatedb task on debian systems only 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 --- 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: