Спасибо, не знаком и буду гуглить как
Не слушай его, всё работает.
---
- name: Shell-n-grep test
hosts: localhost
connection: local
tasks:
- name: Test
register: __test
changed_when: false
shell: "cat kafkacat.help | grep 'It also sets the timeout'"
- name: Print
debug:
var: __test.stdout_lines
...
PLAY [Shell-n-grep test] **********************************************************
TASK [Gathering Facts] **********************************************************ok: [localhost]
TASK [Test] **********************************************************ok: [localhost]
TASK [Print] **********************************************************ok: [localhost] =>
__test.stdout_lines:
- ' It also sets the timeout for the producer''s'
PLAY RECAP **********************************************************localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0