Regular Expression in ANSIBLE

Hello - is this log file located in the server where Ansible is installed or remote server ?

Not sure how you are initiating your playbooks. Here is what I did.

I initiated my playbooks from a shell script and parsed the output in the script.

What may work is using Ansible Modul script.
It returns e.g. as stdout only the requested string.

It’s solved. I was asking about regex. But I couldn’t see your solution.

Thankyou!