Hello All
I have a string like this in the register.

Agent Communication Diagnostic Report
-----------------------------------------------

 Agent User Name                : username
 Agent Directory                : /path/to/dir
 Agent Platform Architecture    : Linux
 Agent Version                  : x.0.00.x
 Agent Host Name                : abcdef1234
 Logical Agent Name             : abcdef1234
 Listen to Network Interface    : *ANY

 Agent processes status
 ======================
 Agent Listener                 : Running as root 

How to extract the value of Logical Agent Name             : *abcdef1234 *
from the multiline string. Also want to extract the value of Agent 
Listener                 : *Running as root* 



-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d73d86a5-ddcb-41d8-b455-cd350d0a8cb0n%40googlegroups.com.

Reply via email to