diff options
| author | liuxueli <[email protected]> | 2020-10-16 10:08:11 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2020-10-16 10:08:11 +0800 |
| commit | 9c1e8fb655321b815ac4128ef921d1cac41f3eca (patch) | |
| tree | a9789bae376610e670ed25291eff46f388e3fbdb /roles/packet_dump/tasks | |
| parent | 27f242ec8f662ebcaa2548da62dc32e0c82697e9 (diff) | |
更新sapp配置文件模板; 更新pcapng存储程序;
Diffstat (limited to 'roles/packet_dump/tasks')
| -rw-r--r-- | roles/packet_dump/tasks/main.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/roles/packet_dump/tasks/main.yml b/roles/packet_dump/tasks/main.yml new file mode 100644 index 0000000..89b5289 --- /dev/null +++ b/roles/packet_dump/tasks/main.yml @@ -0,0 +1,29 @@ +- name: "copy packet_dump rpm to destination server" + copy: + src: "{{ role_path }}/files/packet_dump-1.0.2.90c24cb-2.el7.x86_64.rpm" + dest: /tmp/ansible_deploy/ + +- name: "copy packet_dump.service to destination server" + copy: + src: "{{ role_path }}/files/packet_dump.service" + dest: /usr/lib/systemd/system + mode: 0755 + +- name: "install packet_dump rpm from localhost" + yum: + name: + - /tmp/ansible_deploy/packet_dump-1.0.2.90c24cb-2.el7.x86_64.rpm + state: present + +- name: "Template the packet_dump.conf" + template: + src: "{{ role_path }}/templates/packet_dump.conf.j2" + dest: /home/mesasoft/packet_dump/conf/packet_dump.conf + tags: template + +- name: "start packet_dump" + systemd: + name: packet_dump.service + enabled: yes + daemon_reload: yes + |
