I have to analyse relatively large XML objects (Juniper configs). I’d like to check for presence of certain trees, values and attributes. I could write a lookup plugin but that feels like a relatively complicated way to solve a simple problem. Even just loading it as a var would make it easier, but I don’t think there is a “clean” ansible way of doing it. How one deals with XML in ansible?
I've used https://github.com/cmprescott/ansible-xml with some success,
but that module has its issues.
I do come across more and more cases where I need to manipulate XML,
so when it works its a clean option.