--- - hosts: localhost connection: local vars: filebeat_config: filebeat.inputs: - type: log paths: - /var/log/messages - /var/log/*.log output.file: path: "/tmp/filebeat" filename: filebeat roles: - ansible-role-filebeat