I figured this out. Turned out that my xml was using a different
namespace? I had to follow guidance I found on stackoverflow:
https://stackoverflow.com/questions/5239685/xml-namespace-breaking-my-xpath
So my play now looks like this (and works):
tasks:
- name: Test modifying XML
win_xml:
path: e:\jboss-eap-6.4\XXXXXXXXX\configuration\domain.xml
xpath:
'/*[local-name()="domain"]/*[local-name()="server-groups"]/*[local-name()="server-group"]/*[local-name()="jvm"]/*[local-name()="heap"]'
attribute: 'size'
fragment: '123m'
type: attribute
--
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/4c0d8605-8923-4346-bb06-e252c1a18142%40googlegroups.com.