更新设备管理一键部署安装包
This commit is contained in:
Binary file not shown.
@@ -19,6 +19,11 @@
|
||||
dest: /usr/share/snmp/snmpd.conf
|
||||
tags: template
|
||||
|
||||
- name: "Templates oam_cli_agent.service"
|
||||
template:
|
||||
src: "{{ role_path }}/templates/oam_cli_agent.service.j2"
|
||||
dest: /usr/lib/systemd/system/oam_cli_agent.service
|
||||
|
||||
- name: "Start snmpd"
|
||||
systemd:
|
||||
name: snmpd
|
||||
@@ -30,3 +35,4 @@
|
||||
name: oam_cli_agent
|
||||
state: restarted
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
||||
15
roles/oam_cli_agent/templates/oam_cli_agent.service.j2
Normal file
15
roles/oam_cli_agent/templates/oam_cli_agent.service.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=oam_cli_agent daemon
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=OAM_DIR=/opt/tsg/cli_agent/
|
||||
ExecStart=/usr/lib/jvm/{{ java_version }}/bin/java -jar ${OAM_DIR}oam_cli_agent.jar --spring.config.location=${OAM_DIR}application.properties,${OAM_DIR}application-centos2.properties --logging.file=${OAM_DIR}oam-cli-agent.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
|
||||
Reference in New Issue
Block a user