# How to use "when" with multiple "item.x"?

**URL:** <https://forum.ansible.com/t/how-to-use-when-with-multiple-item-x/20893>\
**Category:** Ansible Project\
**Created:** [March 16, 2016, 6:51pm UTC](https://forum.ansible.com/t/how-to-use-when-with-multiple-item-x/20893 "2016-03-16T18:51:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thiago\_Martins](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Thiago\_Martins](https://forum.ansible.com/u/Thiago_Martins)\
**Post date:** [March 16, 2016, 6:51pm UTC](https://forum.ansible.com/t/how-to-use-when-with-multiple-item-x/20893/1 "2016-03-16T18:51:41Z")

</div>

Guys,

Currently, I have an Ansible automation to deploy OpenStack, it works great but, starting from Mitaka, Nova requires two SQL databases (nova and nova\_api), and not just only one anymore.

So, for Liberty, I have something like this:

group\_vars/all:

([https://github.com/tmartinx/svauto/blob/dev/ansible/group\_vars/all](https://github.com/tmartinx/svauto/blob/dev/ansible/group_vars/all))
