From: Sébastien Han Date: Thu, 1 Mar 2018 16:33:33 +0000 (+0100) Subject: common: run updatedb task on debian systems only X-Git-Tag: v3.1.0beta4~30 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cb0f598965d0619dd4f44a8f991af539b67c6f38;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 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