update
This commit is contained in:
@@ -41,10 +41,10 @@
|
||||
when: tsg_access_type == 1
|
||||
|
||||
|
||||
- name: "copy sapp.service destination server"
|
||||
copy:
|
||||
src: "{{ role_path }}/files/sapp.service"
|
||||
dest: /usr/lib/systemd/system/
|
||||
- name: "Template sapp.service destination server"
|
||||
template:
|
||||
src: "{{ role_path }}/templates/sapp.service.j2"
|
||||
dest: /usr/lib/systemd/system/sapp.service
|
||||
mode: 0755
|
||||
|
||||
- name: "enable sapp"
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
[Module]
|
||||
{% if tsg_running_type == 2 %}
|
||||
pcapdevice={{ nic_data_incoming.name }}
|
||||
sendto_gdev_card={{ nic_data_incoming.name }}
|
||||
sendto_gdev_ip={{ inline_device_config.ip }}
|
||||
{% else %}
|
||||
pcapdevice={{ inline_device_config.data_incoming }}
|
||||
sendto_gdev_card={{ inline_device_config.data_incoming }}
|
||||
sendto_gdev_ip={{ inline_device_config.keepalive_ip }}
|
||||
{% endif %}
|
||||
gdev_status_switch=1
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
[Unit]
|
||||
Description=sapp service
|
||||
{% if tsg_running_type != 0 %}
|
||||
Requires=mrzcpd.service
|
||||
After=mrzcpd.service
|
||||
{% endif %}
|
||||
[Service]
|
||||
WorkingDirectory=/home/mesasoft/sapp_run
|
||||
ExecStart=/home/mesasoft/sapp_run/sapp
|
||||
Reference in New Issue
Block a user