20 lines
394 B
YAML
20 lines
394 B
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
roles:
|
|
- ansible-role-filebeat
|
|
vars:
|
|
filebeat_config:
|
|
filebeat.inputs:
|
|
- type: log
|
|
paths:
|
|
- /var/log/messages
|
|
- /var/log/*.log
|
|
output.file:
|
|
path: "/tmp/filebeat"
|
|
filename: filebeat
|
|
|
|
pre_tasks:
|
|
- name: update apt cache
|
|
ansible.builtin.apt:
|
|
update_cache: true
|