--- - hosts: localhost connection: local vars: logstash_plugins: - name: logstash-output-influxdb logstash_inputs: file: path: /var/log/syslog logstash_outputs: - > file { path => "/var/log/syslog" codec => "json" } roles: - ansible-role-logstash