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 | |
Woojoong Kim | 0d7bf7d | 2017-11-17 09:05:48 -0800 | [diff] [blame] | 41 | - name: write flag for interface_config |
Woojoong Kim | e7d8772 | 2017-11-14 14:16:13 -0800 | [diff] [blame] | 42 | become: yes |
Woojoong Kim | 0d7bf7d | 2017-11-17 09:05:48 -0800 | [diff] [blame] | 43 | shell: "echo 1 > {{source_path}}/cp/finish_flag_interface_config" |