This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
solutions-tsg-scripts/roles/kni/tasks/main.yml
2019-09-03 21:04:43 +08:00

34 lines
764 B
YAML

---
- name: Ensures /home/tsg exists
file: path=/home/tsg state=directory
tags: mkdir
- name: Extract kni.tar.gz
unarchive:
src: "{{ role_path }}/files/kni_20190703.tar.gz"
dest: /home/tsg
tags: extract
- name: Template the kni.conf
template:
src: "{{ role_path }}/templates/kni.conf.j2"
dest: /home/tsg/kni/conf/kni/kni.conf
tags: template
- name: Template the main.conf
template:
src: "{{ role_path }}/templates/main.conf.j2"
dest: /home/tsg/kni/conf/main.conf
tags: template
- name: bootup sapp
blockinfile:
path: /etc/rc.d/rc.local
marker: "## {mark} bootstrap mrzcpd and kni"
block: |
systemctl start mrzcpd
systemctl start mrtunnat
sleep 15
cd /home/tsg/kni; ./r2