kolla-ansible/ansible/roles/nova/tasks/deploy.yml
Bertrand Lallau 8b5b3cef4e Clean some Boolean condition checks
* "bool" filter is removed when not required
* 'not' is used instead of '== False' check

Change-Id: I85a5bb9a5ea874ac1c397cbf8de416147d2424c3
2017-07-10 15:00:28 +00:00

36 lines
1.0 KiB
YAML

---
- include: ceph.yml
when:
- enable_ceph | bool and nova_backend == "rbd"
- inventory_hostname in groups['ceph-mon'] or
inventory_hostname in groups['compute'] or
inventory_hostname in groups['nova-api'] or
inventory_hostname in groups['nova-conductor'] or
inventory_hostname in groups['nova-consoleauth'] or
inventory_hostname in groups['nova-novncproxy'] or
inventory_hostname in groups['nova-scheduler']
- include: external-ceph.yml
when:
- not enable_ceph | bool and nova_backend == "rbd"
- inventory_hostname in groups['compute']
- include: register.yml
when: inventory_hostname in groups['nova-api']
- include: config.yml
- include: config-nova-fake.yml
when:
- enable_nova_fake | bool
- inventory_hostname in groups['compute']
- include: bootstrap.yml
when: inventory_hostname in groups['nova-api'] or
inventory_hostname in groups['compute']
- name: Flush handlers
meta: flush_handlers
- include: simple_cell_setup.yml