puzzle.opnsense.get_xml_tag module – Get specific xml tag from /confg/config.xml

Note

This module is part of the puzzle.opnsense collection (version 0.1.0).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install puzzle.opnsense.

To use it in a playbook, specify: puzzle.opnsense.get_xml_tag.

Synopsis

  • Example module to use OPNsenseConfig module_utils

Parameters

Parameter

Comments

tag

string / required

String to search for tag in xml.

Examples

- name: Print the opnsense xml
  puzzle.opnsense.get_xml_tag:
    tag: "sysctl"
  register: xmlconfig

- name: Print return value
  ansible.builtin.debug:
    msg: "{{ xmlconfig }}"

Authors

  • Philipp Matti (@acteru)