]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
common: run updatedb task on debian systems only
authorSébastien Han <seb@redhat.com>
Thu, 1 Mar 2018 16:33:33 +0000 (17:33 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 2 Mar 2018 20:59:10 +0000 (20:59 +0000)
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 <seb@redhat.com>
roles/ceph-common/tasks/misc/system_tuning.yml

index 4a7d3097bf69486e82f1b5359f3558a0a9e369c5..e183fb9686f1f5289d45bdf4fde703ce5e6ff535 100644 (file)
@@ -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