salt.states.xml

XML Mangler

State managment of XML files

salt.states.xml.value_present(name, xpath, value, **kwargs)

New in version Neon.

Manages a given XML file

namestring

The location of the XML file to manage, as an absolute path.

xpathstring

xpath location to manage

valuestring

value to ensure present

ensure_value_true:
  xml.value_present:
    - name: /tmp/test.xml
    - xpath: .//playwright[@id='1']
    - value: William Shakespeare