blob: e37d0f61b90b97b1d3d487a528c6070ebc274250 [file] [log] [blame]
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
- name: Set SSH password
set_fact:
ansible_ssh_pass: "{{ password }}"
- name: check s11_network interface
shell: ifconfig | grep -B1 "inet addr:{{ mme_s11_ip }}" | awk '$1!="inet" && $1!="--" {print $1}'
args:
executable: /bin/bash
register: mme_s11_interface
- name: check s1u_network interface
shell: ifconfig | grep -B1 "inet addr:{{ enb1_s1u_ip }}" | awk '$1!="inet" && $1!="--" {print $1}'
args:
executable: /bin/bash
register: enb1_s1u_interface
- name: check sgi_network interface
shell: ifconfig | grep -B1 "inet addr:{{ appserver_sgi_ip }}" | awk '$1!="inet" && $1!="--" {print $1}'
args:
executable: /bin/bash
register: appserver_sgi_interface
- name: Copy license file
copy:
src: "{{ ng4t_license_src }}"
dest: "{{ ng4t_license_dest }}"
- name: Create ipconfig file
template:
src: ./templates/ipconfig.j2
dest: "{{ ng4t_ipconfig_dest }}"
- name: Set instance to hosts file
shell: "echo 127.0.1.1 $(cat /etc/hostname) >> /etc/hosts"
- name: Start install ng4t
sudo: no
shell: /home/ng40/install/ng40init
args:
executable: /bin/bash