Hard to say without any actual xml content

On Sun, 12 Sep 2021 at 15:44, Bruno1 <[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/ansible-project/64b258ce-b464-460a-b5d4-d06551f7ef73n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
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/CAL8fbwNtEACTZLfOEuh%3D%3DfAVq3zV%3DrX3YUf-pG-xD0tAFCG3%2Bg%40mail.gmail.com.

Reply via email to