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-07-01 16:25:00 +06:00

27 lines
565 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_20190630.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: bootup sapp
blockinfile:
path: /etc/rc.d/rc.local
block: |
systemctl start mrzcpd
systemctl start mrtunnat
sleep 15
cd /home/tsg/kni; ./r2