2021-12-01 16:12:08 +08:00
|
|
|
- name: "Install Filebeat Instance <{{ instance_name }}>"
|
|
|
|
hosts: "{{ instance_name }}_filebeats"
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: Filebeat Deploy
|
|
|
|
include_role:
|
|
|
|
name: filebeat
|
|
|
|
vars:
|
|
|
|
log_type: "{{ item }}"
|
|
|
|
with_items: "{{ deploy_logs }}"
|
2021-12-22 09:13:01 +08:00
|
|
|
|
|
|
|
- name: Update Alerts Script With Cron
|
|
|
|
ansible.builtin.shell: "svn up /data/ops/script/monitor.sh; chmod 755 /data/ops/script/monitor.sh"
|
2021-12-01 16:12:08 +08:00
|
|
|
|
|
|
|
|