完善app告警信息;
增加基于ADC硬件机框ID作为设备sn功能.
This commit is contained in:
@@ -17,6 +17,13 @@
|
||||
src: "{{ role_path }}/templates/tsg_sn.json.j2"
|
||||
dest: /opt/tsg/etc/tsg_sn.json
|
||||
tags: template
|
||||
when: not use_chassis_hardware_sn | bool
|
||||
|
||||
- name: "copy tsg_sn.json to destination server"
|
||||
synchronize:
|
||||
src: "{{ role_path }}/../tsg-common-files/tsg_sn.json"
|
||||
dest: "/opt/tsg/etc/tsg_sn.json"
|
||||
when: use_chassis_hardware_sn | bool
|
||||
|
||||
- name: "copy tsg-monitor.service to destination server"
|
||||
synchronize:
|
||||
@@ -34,14 +41,21 @@
|
||||
src: "{{ role_path }}/files/tsg-monitor.sh"
|
||||
dest: "/opt/tsg/tsg-monitor/"
|
||||
mode: 0755
|
||||
|
||||
|
||||
- name: "copy rsyslog.conf to destination server"
|
||||
synchronize:
|
||||
src: "{{ role_path }}/files/rsyslog.conf"
|
||||
dest: "/etc/"
|
||||
|
||||
- name: "restart rsyslog service"
|
||||
systemd:
|
||||
name: rsyslog
|
||||
state: restarted
|
||||
|
||||
- name: "enable tsg-monitor service"
|
||||
systemd:
|
||||
name: tsg-monitor
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
state: restarted
|
||||
|
||||
- name: "copy rsyslog.conf to destination server"
|
||||
synchronize:
|
||||
src: "{{ role_path }}/files/rsyslog.conf"
|
||||
dest: "/etc/"
|
||||
Reference in New Issue
Block a user