diff --git a/scripts/collect-info.yaml b/scripts/collect-info.yaml index 8fd3e5c03..957c1aed7 100644 --- a/scripts/collect-info.yaml +++ b/scripts/collect-info.yaml @@ -112,8 +112,8 @@ {%- endfor %} when: "'etcd' in groups" - - name: Storing commands output # noqa 306 - shell: "{{ item.cmd }} 2>&1 | tee {{ item.name }}" + - name: Storing commands output + shell: "{{ item.cmd }} &> {{ item.name }}" failed_when: false with_items: "{{ commands }}" when: item.when | default(True)