kolla-ansible/ansible/roles/neutron/tasks/deploy.yml
Ethan Lynn e237319965 Always check enable_* variables first
Check enable_* variables first, then check inventory_host in
group, will help to avoid configuration errors.

Change-Id: Icdb1f50e5c911203b92ac431723620756b15f3c6
Closes-Bug: #1648376
2016-12-08 17:59:48 +08:00

35 lines
1.4 KiB
YAML

---
# enforce ironic usage only with openvswitch
- include: ironic-check.yml
- include: register.yml
when: inventory_hostname in groups['neutron-server']
- include: config.yml
when: inventory_hostname in groups['compute']
or (enable_manila | bool and inventory_hostname in groups['manila-share'])
or inventory_hostname in groups['neutron-dhcp-agent']
or inventory_hostname in groups['neutron-l3-agent']
or inventory_hostname in groups['neutron-metadata-agent']
or inventory_hostname in groups['neutron-server']
or inventory_hostname in groups['neutron-lbaas-agent']
or inventory_hostname in groups['neutron-vpnaas-agent']
- include: config-neutron-fake.yml
when:
- enable_nova_fake | bool
- inventory_hostname in groups['compute']
- include: bootstrap.yml
when: inventory_hostname in groups['neutron-server']
- include: start.yml
when: inventory_hostname in groups['compute']
or (enable_manila | bool and inventory_hostname in groups['manila-share'])
or inventory_hostname in groups['neutron-dhcp-agent']
or inventory_hostname in groups['neutron-l3-agent']
or inventory_hostname in groups['neutron-metadata-agent']
or inventory_hostname in groups['neutron-server']
or inventory_hostname in groups['neutron-lbaas-agent']
or inventory_hostname in groups['neutron-vpnaas-agent']