blob: 7aae3d2801930cf6d3a76a17cbb95e5d89246a31 [file] [log] [blame]
Woojoong Kimf000eda2017-10-20 15:00:43 -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---
Woojoong Kim1a1e3702017-10-27 13:26:34 -070016
17- name: resolve sudo timeout
18 become: yes
19 shell: "echo 127.0.1.1 $(cat /etc/hostname) >> /etc/hosts"
Woojoong Kimf000eda2017-10-20 15:00:43 -070020
21- name: make interface config file
Woojoong Kim1a1e3702017-10-27 13:26:34 -070022 become: yes
Woojoong Kimf000eda2017-10-20 15:00:43 -070023 template:
24 src=interface.cfg.j2
Woojoong Kim1a1e3702017-10-27 13:26:34 -070025 dest="{{source_path}}/config/interface.cfg" owner=root group=root mode=755
26
27- name: get date
28 shell: date +"%Y-%m-%d_%H-%M"
29 register: tmp_date
30
31- name: assign results into each variable
32 set_fact:
33 date: "{{ tmp_date.stdout }}"
Woojoong Kimf000eda2017-10-20 15:00:43 -070034
35- name: make cp_config config file
Woojoong Kim1a1e3702017-10-27 13:26:34 -070036 become: yes
Woojoong Kimf000eda2017-10-20 15:00:43 -070037 template:
38 src=cp_config.cfg.j2
Woojoong Kim1a1e3702017-10-27 13:26:34 -070039 dest="{{source_path}}/config/cp_config.cfg" owner=root group=root mode=755
40
41#- name: Build ngic
42# become: yes
43# shell: "{{ item }}"
44# args:
45# chdir: "{{ source_path }}"
46# environment:
47# NG_CORE: "{{ source_path }}"
48# RTE_SDK: "{{ source_path }}/dpdk"
49# RTE_TARGET: "x86_64-native-linuxapp-gcc"
50# HYPERSCANDIR: "/root/ngic/hyperscan-4.1.0"
51# with_items:
52# - make
53# - /root/ngic/cp/run.sh -c 1