blob: e37d0f61b90b97b1d3d487a528c6070ebc274250 [file] [log] [blame]
Andy Bavierae2fec42017-11-20 10:55:13 -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---
JianHao69678342017-11-20 18:01:37 -080016- name: Set SSH password
17 set_fact:
18 ansible_ssh_pass: "{{ password }}"
19
20- name: check s11_network interface
21 shell: ifconfig | grep -B1 "inet addr:{{ mme_s11_ip }}" | awk '$1!="inet" && $1!="--" {print $1}'
22 args:
23 executable: /bin/bash
24 register: mme_s11_interface
25
26- name: check s1u_network interface
27 shell: ifconfig | grep -B1 "inet addr:{{ enb1_s1u_ip }}" | awk '$1!="inet" && $1!="--" {print $1}'
28 args:
29 executable: /bin/bash
30 register: enb1_s1u_interface
31
32- name: check sgi_network interface
33 shell: ifconfig | grep -B1 "inet addr:{{ appserver_sgi_ip }}" | awk '$1!="inet" && $1!="--" {print $1}'
34 args:
35 executable: /bin/bash
36 register: appserver_sgi_interface
37
Andy Bavierae2fec42017-11-20 10:55:13 -070038- name: Copy license file
39 copy:
40 src: "{{ ng4t_license_src }}"
41 dest: "{{ ng4t_license_dest }}"
JianHao69678342017-11-20 18:01:37 -080042
43- name: Create ipconfig file
44 template:
45 src: ./templates/ipconfig.j2
46 dest: "{{ ng4t_ipconfig_dest }}"
47
48- name: Set instance to hosts file
49 shell: "echo 127.0.1.1 $(cat /etc/hostname) >> /etc/hosts"
50
51- name: Start install ng4t
52 sudo: no
53 shell: /home/ng40/install/ng40init
54 args:
55 executable: /bin/bash