blob: 464ed9b5e588ede8abb56752e7846a4786091a78 [file] [log] [blame]
Andy Bavierb36b84e2017-08-10 14:46:32 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15- name: Install prereqs for building OVS
16 apt:
17 name: "{{ item }}"
18 state: present
19 update_cache: yes
20 become: yes
21 with_items:
22 - build-essential
23 - fakeroot
24 - graphviz
25 - autoconf
26 - automake
27 - bzip2
28 - debhelper
29 - dh-autoreconf
30 - libssl-dev
31 - libtool
32 - openssl
33 - procps
34 - python-all
35 - python-qt4
36 - python-twisted-conch
37 - python-zopeinterface
38
39- name: Download and unarchive OVS tarball
40 unarchive:
41 src: http://openvswitch.org/releases/openvswitch-{{ ovs_version }}.tar.gz
42 dest: /tmp/
43 remote_src: yes
44
45- name: Build OVS .deb packages
46 command: fakeroot debian/rules binary
47 args:
48 chdir: /tmp/openvswitch-{{ ovs_version }}
49 creates: /tmp/openvswitch-switch_{{ ovs_version }}-1_amd64.deb