cb3df3ed4d7f1af609dfe57b937a75670677a7e8
[yardstick.git] / ansible / roles / install_vnf_vFW / tasks / main.yml
1 # Copyright (c) 2017 Intel Corporation
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: vFW_vnf make clean
16   my_make: chdir="{{ vfw_build_dir }}" target=clean extra_args="-j {{ ansible_processor_vcpus }}"
17   environment:
18     RTE_SDK: "{{ RTE_SDK }}"
19     RTE_TARGET: "{{ RTE_TARGET }}"
20     VNF_CORE: "{{ samplevnf_path }}"
21
22 #- name: make vFW VNF
23 #  my_make: chdir="{{ vfw_build_dir }}" extra_args="-j {{ ansible_processor_vcpus }}"
24 #  environment:
25 #    RTE_SDK: "{{ RTE_SDK }}"
26 #    RTE_TARGET: "{{ RTE_TARGET }}"
27 #    VNF_CORE: "{{ samplevnf_path }}"
28
29 - name: make vFW VNF
30   command: make chdir="{{ vfw_build_dir }}" extra_args="-j {{ ansible_processor_vcpus }}" all
31   args:
32     chdir: "{{ vfw_build_dir }}"
33   environment:
34     RTE_SDK: "{{ RTE_SDK }}"
35     RTE_TARGET: "{{ RTE_TARGET }}"
36     VNF_CORE: "{{ samplevnf_path }}"
37
38 #- command: cp "{{ vfw_build_dir }}/vFW/build/ip_pipeline" "{{ INSTALL_BIN_PATH }}/vFW_vnf"
39 - name: Install vFW VNF
40   copy:
41     src: "{{ vfw_build_dir }}/build/vFW"
42     dest: "{{ INSTALL_BIN_PATH }}/vFW"
43     remote_src: True
44     # make executable
45     mode: 0755
46
47 #- command: cp "{{ vfw_build_dir }}/vFW/config/full_tm_profile_10G.cfg" "{{ INSTALL_BIN_PATH }}/"
48 #- copy:
49 #    src: "{{ vfw_build_dir }}/vFW/config/full_tm_profile_10G.cfg"
50 #    dest: "{{ INSTALL_BIN_PATH }}/"