Hi,
I’m trying to use the xml module to find a xml block.
The xpath find the block, but all nested child structure is removed, I.E all data is at same level after.
Has anyone any ideas what is missing?
Wrong module to use?
tasks:
-
name: manage xml block
xml:
path: “output/{{ inventory_hostname }}_get_config.xml”
xpath: /root/groups[name=“test”]//*
content: text
register: test -
name: Print result xml
debug:
msg: "{{ test.matches}} "