Skip to content

Commit 1b48436

Browse files
Donienafeefghannam89widhalmt
authored
Change used module from 'command' to 'shell' to allow shell redirect (NETWAYS#200)
Fix NETWAYS#198 This PR adjusts a task that used the `command` module with a command that wants to redirect output into a file. This, however, is not possible since no actual shell is used, thus making that redirect impossible. The Ingest Pipelines were never created. Changed the `command` module to the `shell` module. Co-authored-by: Afeef Ghannam <[email protected]> Co-authored-by: Thomas Widhalm <[email protected]>
1 parent 2a372bc commit 1b48436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/beats/tasks/filebeat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
- elasticstack_release | int > 7
8888

8989
- name: Enable Ingest Pipelines
90-
command: >
90+
shell: >
9191
/usr/bin/filebeat setup --pipelines &&
9292
/usr/bin/filebeat version > /etc/filebeat/{{ item }}_pipeline_created
9393
args:

0 commit comments

Comments
 (0)