Forget what I said - I misread. The win_xml module doesn't have a
'namespaces' option.
I mixed it up with the regular xml module.
On Wed, 1 Apr 2020 at 07:18, Dick Visser wrote:
> Hi
>
> While that does work, it looks like the xpath expression is flattening too
> much with all those wildcards.
Hi
While that does work, it looks like the xpath expression is flattening too
much with all those wildcards.
The correct way would be to provide the actual namespace, this is supported
by the module:
https://docs.ansible.com/ansible/latest/modules/xml_module.html#parameter-namespaces
Dick
On
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
I forgot to add, the domain tag is:
not just
if that's relevant.
On Tuesday, March 31, 2020 at 3:15:35 PM UTC-7, Dave York wrote:
>
> I have an JBoss domain.xml file im trying to manipulate with win_xml:
>
>
> ...
>
>
>
>
>