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

54 lines
1.3 KiB
YAML
Raw Normal View History

2019-06-22 18:22:31 +08:00
---
- name: "copy sapp and kni to destination server"
copy:
src: "{{ role_path }}/files/"
dest: /tmp/ansible_deploy/
2019-06-22 18:22:31 +08:00
2019-09-23 20:33:09 +08:00
- name: "install sapp rpms from localhost"
yum:
name:
2019-09-26 16:30:12 +08:00
- /tmp/ansible_deploy/sapp-4.0.4.d31932a-1.el7.x86_64.rpm
2019-09-23 20:33:09 +08:00
state: present
- name: "install kni rpms from localhost"
yum:
name:
2019-12-18 17:45:45 +08:00
- /tmp/ansible_deploy/kni-2.1.5.9e42ae3-1.el7.centos.x86_64.rpm
2019-09-23 20:33:09 +08:00
state: present
- name: Template the sapp.toml
2019-06-22 18:22:31 +08:00
template:
2019-09-23 20:33:09 +08:00
src: "{{ role_path }}/templates/sapp.toml.j2"
dest: /home/mesasoft/sapp_run/etc/sapp.toml
2019-06-22 20:13:27 +08:00
tags: template
2019-09-23 20:33:09 +08:00
- name: Template the project_list.conf
2019-09-03 21:04:43 +08:00
template:
2019-09-23 20:33:09 +08:00
src: "{{ role_path }}/templates/project_list.conf.j2"
dest: /home/mesasoft/sapp_run/etc/project_list.conf
tags: template
- name: Template the conflist.inf
template:
src: "{{ role_path }}/templates/conflist.inf.j2"
dest: /home/mesasoft/sapp_run/plug/conflist.inf
tags: template
- name: Template the gdev.conf
template:
src: "{{ role_path }}/templates/gdev.conf.j2"
dest: /home/mesasoft/sapp_run/etc/gdev.conf
tags: template
- name: Template the kni.conf
template:
src: "{{ role_path }}/templates/kni.conf.j2"
dest: /home/mesasoft/sapp_run/etc/kni/kni.conf
2019-09-03 21:04:43 +08:00
tags: template
2019-09-23 20:33:09 +08:00
- name: "enable sapp"
systemd:
name: sapp
enabled: yes
daemon_reload: yes