blob: 3ef5381538e5bb596ddd4761d29f1a8f2e6a3103 [file] [log] [blame]
Woojoong Kimce931a42018-03-15 14:36:19 -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.
Andy Bavier9a3aed12018-01-16 15:37:08 -070014---
Woojoong Kim943170a2018-02-16 11:56:03 -080015- name: resolve sudo timeout
16 become: yes
17 shell: "echo 127.0.1.1 $(cat /etc/hostname) >> /etc/hosts"
18
Andy Bavier9a3aed12018-01-16 15:37:08 -070019- name: Copy templates
20 template:
21 src: "templates/{{ item }}.j2"
22 dest: "{{ source_path }}/{{ item }}"
23 with_items:
24 - vbfd.conf
25 - vbsm_cfg.txt
26
27- name: Run make_certs.sh command
28 shell: "./make_certs.sh mme {{ realm }}"
29 args:
30 chdir: "{{ source_path }}"
31
Andy Bavierb04ed9f2018-01-20 13:25:32 -070032- name: Kill running MME
33 shell: "killall -w {{ item }}"
34 ignore_errors: yes
35 with_items:
36 - tmux
37 - vb_acc
38
39# vb_acc exits if it's not run with a TTY (?)
40- name: Run MME
41 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 -070042 args:
43 chdir: "{{ source_path }}"