summaryrefslogtreecommitdiff
path: root/roles/packet_dump/tasks/main.yml
blob: 199a4ecb604c19d5dc4f24303d388046f742889f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
- 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