869d264a33318dd513f9a2de7096dea690770fcc
[compass4nfv.git] /
1 ##############################################################################
2 # Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 ---
10
11 - name: patch odl pip package
12   shell: |
13     cd /opt
14     tar xf /opt/{{ networking_odl_pkg_name }}
15     rm -rf /opt/{{ networking_odl_pkg_name }}
16     sed -i 's/^neutron-lib.*/neutron-lib/' networking-odl-2.0.0/requirements.txt
17     tar zcf /opt/{{ networking_odl_pkg_name }} networking-odl-2.0.0
18     rm -rf networking-odl-2.0.0
19     cd -
20
21 - name: odl pip package install
22   shell: |
23     cd /opt
24     pip install {{ networking_odl_pkg_name }}
25     rm -rf {{ networking_odl_pkg_name }}
26     cd -