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}} "
--
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/64b258ce-b464-460a-b5d4-d06551f7ef73n%40googlegroups.com.