blob: 78bb7b00c8104e8f7ba93252afbe37eee666189e [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
Woojoong Kim0d7bf7d2017-11-17 09:05:48 -080041- name: write flag for interface_config
Woojoong Kime7d87722017-11-14 14:16:13 -080042 become: yes
Woojoong Kim0d7bf7d2017-11-17 09:05:48 -080043 shell: "echo 1 > {{source_path}}/cp/finish_flag_interface_config"