blob: 48b62a817f92ac4fba255dc36bb8921c1297ea29 [file] [log] [blame]
Woojoong Kim639aa4e2018-02-16 11:56:03 -08001# 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
Andy Bavier9a3aed12018-01-16 15:37:08 -070015---
Woojoong Kim639aa4e2018-02-16 11:56:03 -080016- name: resolve sudo timeout
17 become: yes
18 shell: "echo 127.0.1.1 $(cat /etc/hostname) >> /etc/hosts"
19
Andy Bavier9a3aed12018-01-16 15:37:08 -070020- name: Copy templates
21 template:
22 src: "templates/{{ item }}.j2"
23 dest: "{{ source_path }}/{{ item }}"
24 with_items:
25 - vbfd.conf
26 - vbsm_cfg.txt
27
28- name: Run make_certs.sh command
29 shell: "./make_certs.sh mme {{ realm }}"
30 args:
31 chdir: "{{ source_path }}"
32
Andy Bavierb04ed9f2018-01-20 13:25:32 -070033- name: Kill running MME
34 shell: "killall -w {{ item }}"
35 ignore_errors: yes
36 with_items:
37 - tmux
38 - vb_acc
39
40# vb_acc exits if it's not run with a TTY (?)
41- name: Run MME
42 shell: tmux new -d 'while true; do ./vb_acc >> /tmp/vb_acc.output 2>&1; sleep 15; done'
Andy Bavier9a3aed12018-01-16 15:37:08 -070043 args:
44 chdir: "{{ source_path }}"