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 <seb@redhat.com>
pull/2436/head
Sébastien Han 2018-03-05 18:57:29 +01:00 committed by Guillaume Abrioux
parent a52ed43093
commit 96c049be5b
1 changed files with 2 additions and 0 deletions

View 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: