Woojoong Kim | ce931a4 | 2018-03-15 14:36:19 -0700 | [diff] [blame] | 1 | # 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 Bavier | 9a3aed1 | 2018-01-16 15:37:08 -0700 | [diff] [blame] | 14 | --- |
Woojoong Kim | 943170a | 2018-02-16 11:56:03 -0800 | [diff] [blame] | 15 | - name: resolve sudo timeout |
| 16 | become: yes |
| 17 | shell: "echo 127.0.1.1 $(cat /etc/hostname) >> /etc/hosts" |
| 18 | |
Andy Bavier | 9a3aed1 | 2018-01-16 15:37:08 -0700 | [diff] [blame] | 19 | - 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 Bavier | b04ed9f | 2018-01-20 13:25:32 -0700 | [diff] [blame] | 32 | - 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 Bavier | 9a3aed1 | 2018-01-16 15:37:08 -0700 | [diff] [blame] | 42 | args: |
| 43 | chdir: "{{ source_path }}" |