Hi All, I have the below xml file and I have to get all the application names 
whose status of the service instance value is "Running". is there any way to do 
this in ansible.

<applications>
  <application name="xyz">
     <service name="abc">
        <serviceInstance name="ABC">
           <status>Running</status>
        </serviceInstance>
     </service>
  </application>
  <application name="def">
     <service name="ijk">
        <serviceInstance name="DEF">
           <status>Stopped</status>
        </serviceInstance>
     </service>
  </application>
etc....
</applications>

I am new to ansible, I tried xml module, but i dont know how to set the xpath.

-- 
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/f4af1c22-fcab-4446-9a80-54622ef409abo%40googlegroups.com.

Reply via email to