Jetpack is an Ansible collection containing useful Ansible add-ons for network engineers and operators.
Ansible 2.9 required.
object_browser
: An Ansible role that generates an HTML file from a hosts facts. The HTML file is in navigatable tree format and provides and easy way to review and report on both inventory information for a host or information gathered about a host during the playbook run.
operating_state
: An Ansible role that collects information about the operating state of various resources on a network devices and returns parsed and structured data.
cli_parse_transform
: An Ansible module that combines the running of commands on a network device with the parsing and transformation of the resulting structured data. Use either pyats
or the device's native_json
support for parsing.
fact_diff
: An Ansible module that compares and shows the differences between two facts. When using the default callback, differences are shown during the playbook run. Differences are also returned from the task in the diff_lines
key. The task will return changed
if the before and after are not equal.
ready_for_modules
: An Ansible module that compares structured data to what an Ansible module expects and removes the extranious information. It can also be used to split a single dictionary into multiple dictionaries, one for each module desired
network_change_log
: Shows network device changes during a playbook run as well as a per-device summary of changes when the playbook completes.
camel_to_snake
Convert camelCase keys to snake_case keys.
expand_vlans
Expand a range of vlans to a list.
flatten_list_of_dicts
Convert a list of dictionaries to a list of values.
keep_keys
Select which keys should be kept in the data.
nxos_flatten_table_row
Remove the nxos TABLE and ROW keys.
rekey_on_members
Turn a list of dictionaries into a dictionary based on a key.
replace_keys
Replace keys in the data.
set_root_key
Set a root key for the data.
stats
Generate statistics from the data.
str_to_native
Convert string to their native type.
unnest
Promote a child key to it's parent in the tree.
As of Aug 8, two WIP changes need to be made for these to work: