Woojoong Kim | f000eda | 2017-10-20 15:00:43 -0700 | [diff] [blame] | 1 | # 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 Kim | 1a1e370 | 2017-10-27 13:26:34 -0700 | [diff] [blame] | 16 | |
| 17 | - name: resolve sudo timeout |
| 18 | become: yes |
| 19 | shell: "echo 127.0.1.1 $(cat /etc/hostname) >> /etc/hosts" |
Woojoong Kim | f000eda | 2017-10-20 15:00:43 -0700 | [diff] [blame] | 20 | |
| 21 | - name: make interface config file |
Woojoong Kim | 1a1e370 | 2017-10-27 13:26:34 -0700 | [diff] [blame] | 22 | become: yes |
Woojoong Kim | f000eda | 2017-10-20 15:00:43 -0700 | [diff] [blame] | 23 | template: |
| 24 | src=interface.cfg.j2 |
Woojoong Kim | 1a1e370 | 2017-10-27 13:26:34 -0700 | [diff] [blame] | 25 | 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 Kim | f000eda | 2017-10-20 15:00:43 -0700 | [diff] [blame] | 34 | |
| 35 | - name: make cp_config config file |
Woojoong Kim | 1a1e370 | 2017-10-27 13:26:34 -0700 | [diff] [blame] | 36 | become: yes |
Woojoong Kim | f000eda | 2017-10-20 15:00:43 -0700 | [diff] [blame] | 37 | template: |
| 38 | src=cp_config.cfg.j2 |
Woojoong Kim | 1a1e370 | 2017-10-27 13:26:34 -0700 | [diff] [blame] | 39 | 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 |