.. _ansible.utils.cli_parse_module:
***********************
ansible.utils.cli_parse
***********************
**Parse cli output or text using a variety of parsers**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- Parse cli output or text using a variety of parsers
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
command
string
|
|
The command to run on the host
|
parser
dictionary
/ required
|
|
Parser specific parameters
|
|
command
string
|
|
The command used to locate the parser's template
|
|
name
string
/ required
|
|
The name of the parser to use
|
|
os
string
|
|
Provide an operating system value to the parser
For `ntc_templates` parser, this should be in the supported `<vendor>_<os>` format.
|
|
template_path
string
|
|
Path of the parser template on the Ansible controller
This can be a relative or an absolute path
|
|
vars
dictionary
|
|
Additional parser specific parameters
See the cli_parse user guide for examples of parser specific variables
|
set_fact
string
|
|
Set the resulting parsed data as a fact
|
text
string
|
|
Text to be parsed
|