summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/setup-openvswitch/tasks/odl.yml
blob: 9c96a46aa33d8cdc702037b0771d5dc8c35cfaac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#############################################################################
# Copyright (c) 2017-2018 HUAWEI TECHNOLOGIES CO.,LTD and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
#############################################################################
---
- name: uninstall ovs for odl
  apt:
    name: "{{ item.name }}"
    state: absent
  with_items: "{{ ovs_pkgs }}"

- name: download ovs pkgs
  get_url:
    url: "{{ item.url }}"
    dest: "/tmp/{{ item.package }}"
  with_items: "{{ ovs_pkgs }}"

- name: install ovs pkgs
  shell:
    dpkg -i "/tmp/{{ item.package }}"
  with_items: "{{ ovs_pkgs }}"