It uses the command module. Within its shell command a redirect is used (>).
This leads to a problem: The redirect into the file does not work using the command module since no actual shell is used.
It does however work using the shell module. We can even keep the creates argument, making this a pretty simple fix.
Within roles/beats/tasks/filebeat.yml there is the following task:
It uses the
command
module. Within its shell command a redirect is used (>
). This leads to a problem: The redirect into the file does not work using thecommand
module since no actual shell is used.It does however work using the
shell
module. We can even keep thecreates
argument, making this a pretty simple fix.