kolla-ansible/ansible/roles/nova/tasks/deploy.yml
Jeffrey Zhang 35f9335572 Optimize reconfigure action for nova
Change-Id: Ida7c955d9ddf7b7dc3289001958326c38c62d0c9
Partially-implements: blueprint better-reconfigure
2017-01-25 13:20:06 +08:00

34 lines
999 B
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:
- enable_ceph | bool == False 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