b51eeed89e
include is marked as deprecated since ansible 2.4[0] [0] https://docs.ansible.com/ansible/2.4/include_module.html#deprecated Co-Authored-By: confi-surya <singh.surya64mnnit@gmail.com> Change-Id: Ic9d71e1865d1c728890625aeddf424a5734c0a8a
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
---
|
|
- include_tasks: ceph.yml
|
|
when:
|
|
- (enable_ceph | bool) and (cinder_backend_ceph | bool)
|
|
- inventory_hostname in groups['ceph-mon'] or
|
|
inventory_hostname in groups['cinder-api'] or
|
|
inventory_hostname in groups['cinder-volume'] or
|
|
inventory_hostname in groups['cinder-scheduler'] or
|
|
inventory_hostname in groups['cinder-backup']
|
|
|
|
- include_tasks: external_ceph.yml
|
|
when:
|
|
- (enable_ceph | bool == False) and (cinder_backend_ceph | bool)
|
|
- inventory_hostname in groups['cinder-volume'] or
|
|
inventory_hostname in groups['cinder-backup']
|
|
|
|
- include_tasks: register.yml
|
|
when: inventory_hostname in groups['cinder-api']
|
|
|
|
- include_tasks: config.yml
|
|
when: inventory_hostname in groups['cinder-api'] or
|
|
inventory_hostname in groups['cinder-volume'] or
|
|
inventory_hostname in groups['cinder-scheduler'] or
|
|
inventory_hostname in groups['cinder-backup']
|
|
|
|
- include_tasks: clone.yml
|
|
when: cinder_dev_mode | bool
|
|
|
|
- include_tasks: bootstrap.yml
|
|
when: inventory_hostname in groups['cinder-api']
|
|
|
|
- name: Flush handlers
|
|
meta: flush_handlers
|
|
|
|
- include_tasks: check.yml
|
|
when: inventory_hostname in groups['cinder-api'] or
|
|
inventory_hostname in groups['cinder-volume'] or
|
|
inventory_hostname in groups['cinder-scheduler'] or
|
|
inventory_hostname in groups['cinder-backup']
|