]> 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>
Mon, 5 Mar 2018 17:57:29 +0000 (18:57 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 6 Mar 2018 15:24:31 +0000 (15:24 +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 e183fb9686f1f5289d45bdf4fde703ce5e6ff535..7431b3cf178e34d57eae7881561aa8988e2f1810 100644 (file)
@@ -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: