I have a log file on my machine called test.log. I would like to use ansible playbook to search on the content of the log file that the word below exist:
--- text 1230 mode 1
My playbook contain a task with :
- name: Get my log file shell: "cat /home/user/test.log" register: text1
But how to make sure that my word above exist ?