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:
parent
15ce0e0600
commit
f1f12d70a3
@ -22,8 +22,10 @@
|
||||
inventory_hostname in groups['compute']
|
||||
|
||||
- include_tasks: create_cells.yml
|
||||
when: inventory_hostname in groups['nova-api']
|
||||
|
||||
- name: Flush handlers
|
||||
meta: flush_handlers
|
||||
|
||||
- include_tasks: discover_computes.yml
|
||||
when: inventory_hostname in groups['nova-api']
|
||||
|
Loading…
x
Reference in New Issue
Block a user