Skip to content

Instantly share code, notes, and snippets.

@benbramley
benbramley / xmlfile.py
Created March 20, 2015 05:16
Ansible lookup plugin for XML files
from ansible import utils, errors
import os
import xml.etree.ElementTree as etree
class LookupModule(object):
def __init__(self, basedir=None, **kwargs):
self.basedir = basedir
def tostr(self, node):