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/packet_dump/tasks/main.yml
fumingwei 8537488980 update
1.update kn 20.11.01, fix get src/dst mac
	2.update cerstore log level
	3.update packet_dump 1.0.8
2020-11-11 15:03:44 +06:00

40 lines
1.0 KiB
YAML

- name: "copy packet_dump rpm to destination server"
copy:
src: "{{ role_path }}/files/packet_dump-1.0.8.2e723ab-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.8.2e723ab-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: "create /var/www/html/troubleshooting"
file:
path: /var/www/html/troubleshooting
state: directory
- name: "start packet_dump"
systemd:
name: packet_dump.service
enabled: yes
daemon_reload: yes
- name: "enable httpd"
systemd:
name: httpd
enabled: yes
daemon_reload: yes