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
2020-10-19 20:50:35 +08:00

29 lines
792 B
YAML

- name: "copy packet_dump rpm to destination server"
copy:
src: "{{ role_path }}/files/packet_dump-1.0.4.82e85d1-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.4.82e85d1-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