---
- name: PkgMgr RHEL/CentOS | Install net-tools pkg for route
  yum:
    pkg=net-tools
    state=latest

- name: PkgMgr RHEL/CentOS | Get openstack ocata rpm
  get_url:
    url: https://repos.fedorapeople.org/repos/openstack/openstack-ocata/rdo-release-ocata-2.noarch.rpm
    dest: /tmp/rdo-release-ocata-2.noarch.rpm
    validate_certs: False
  environment:
    http_proxy: "{{ http_proxy|default('') }}"
    https_proxy: "{{ https_proxy|default('') }}"
    no_proxy: "{{ no_proxy|default('') }}"
  tags:
    - ovs_install

- name: PkgMgr RHEL/CentOS | Install openstack ocata rpm
  yum: name=/tmp/rdo-release-ocata-2.noarch.rpm state=present
  tags:
    - ovs_install

- name: PkgMgr RHEL/CentOS | Install ovs
  yum:
    pkg=openvswitch-2.5.0-2.el7.x86_64
    state=present
  environment:
    http_proxy: "{{ http_proxy|default('') }}"
    https_proxy: "{{ https_proxy|default('') }}"
    no_proxy: "{{ no_proxy|default('') }}"
  tags:
    - ovs_install

---
- name: PkgMgr RHEL/CentOS | Install net-tools pkg for route
  yum:
    pkg=net-tools
    state=latest

- name: PkgMgr RHEL/CentOS | Get openstack ocata rpm
  get_url:
    url: https://repos.fedorapeople.org/repos/openstack/openstack-ocata/rdo-release-ocata-2.noarch.rpm
    dest: /tmp/rdo-release-ocata-2.noarch.rpm
    validate_certs: False
  environment:
    http_proxy: "{{ http_proxy|default('') }}"
    https_proxy: "{{ https_proxy|default('') }}"
    no_proxy: "{{ no_proxy|default('') }}"
  tags:
    - ovs_install

- name: PkgMgr RHEL/CentOS | Install openstack ocata rpm
  yum: name=/tmp/rdo-release-ocata-2.noarch.rpm state=present
  tags:
    - ovs_install

- name: PkgMgr RHEL/CentOS | Install ovs
  yum:
    pkg=openvswitch
    state=present
  environment:
    http_proxy: "{{ http_proxy|default('') }}"
    https_proxy: "{{ https_proxy|default('') }}"
    no_proxy: "{{ no_proxy|default('') }}"
  tags:
    - ovs_install

Remove version requirement from openvswitch package, since listed version got removed from repo
Remove version requirement from openvswitch package, since listed version got removed from repo
