---
- name: OVS | include vars
  include_vars: "{{ ansible_os_family|lower }}.yml"

- name: OVS | check if OVS is installed
  win_service:
    name: ovsdb-server
  register: ovs_service

- name: OVS | Install OVS
  block:
  - name: OVS | Install beta OVS
    include_tasks: "./install_custom_ovs.yml"
    when: install_custom_ovs

  - name: OVS | Install release OVS
    include_tasks: ./install_ovs.yml
    when: not install_custom_ovs
  when: not ovs_service.exists
