Adjust when statement for os-gnocchi-install playbook

Minor change:
In https://review.openstack.org/#/c/411146 we adjusted the when
statement for the os-gnocchi-install playbook, which was a backport.

Making the same change to make this consistent and keep it in line.

Change-Id: Id17360a1d7526a15e345ffd3a5fcdad9bdf6d454
This commit is contained in:
Andy McCrae 2016-12-20 10:34:24 +00:00
parent 8c3cf66599
commit 22ed4e1f21

View File

@ -27,7 +27,9 @@
when: (gnocchi_storage_driver == "file") or (gnocchi_storage_driver is not defined)
- include: common-tasks/os-lxc-container-setup.yml
static: no
when: (gnocchi_storage_driver != "file") and (gnocchi_storage_driver is defined)
when:
- gnocchi_storage_driver is defined
- gnocchi_storage_driver != "file"
- include: common-tasks/os-log-dir-setup.yml
vars:
log_dirs: