Ignore create_cells and discover_computes when nova-api is disabled

When nova-api group have no hosts, we don't have to run create_cells
and discover_computes. Add conditional blocks to prevent to run them.

Change-Id: Ia1ba058c1b74b06b678f45544883e567e2b4eb55
Closes-Bug: #1843235
This commit is contained in:
Yang Youseok 2019-09-11 14:06:36 +09:00
parent 15ce0e0600
commit f1f12d70a3

View File

@ -22,8 +22,10 @@
inventory_hostname in groups['compute'] inventory_hostname in groups['compute']
- include_tasks: create_cells.yml - include_tasks: create_cells.yml
when: inventory_hostname in groups['nova-api']
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers
- include_tasks: discover_computes.yml - include_tasks: discover_computes.yml
when: inventory_hostname in groups['nova-api']