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 cd74f03162 1. add deploy Aktubinsk
2. add deploy Kyzylorda
3. update tfe rpm package and add config into tfe.conf.j2
4. move maat_redis to blade mcn0
5. update tsg-master rpm package
6. update package_dump rpm package
2020-10-30 10:32:11 +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.7.0c9be9e-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.7.0c9be9e-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