kolla-ansible/ansible/roles/openvswitch/tasks/precheck.yml
Marcus G K Williams 9badc4de21 Split Openvswitch into own role
Creates Openvswitch role and splits
openvswitch from Neutron role to enable
third party networking solutions that use
Openvswitch or customize Openvswitch.
For example Openvswitch with dpdk or
OpenDaylight.

Change-Id: I5a41c42c5ec0a5e6999b2570ddac0f5efc3102ee
Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com>
Partially-Implements: blueprint opendaylight-support
2017-04-11 16:15:35 -07:00

20 lines
571 B
YAML

---
- name: Get container facts
kolla_container_facts:
name:
- openvswitch_db
register: container_facts
- name: Checking free port for OVSDB
vars:
openvswitch_db: "{{ openvswitch_services['openvswitch-db-server'] }}"
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "{{ ovsdb_port }}"
connect_timeout: 1
state: stopped
when:
- container_facts['openvswitch_db'] is not defined
- inventory_hostname in groups[openvswitch_db.group]
- openvswitch_db.enabled | bool