April 2020
Intermediate to advanced
482 pages
15h 16m
English
Ansible provides a fact-gathering module to collect the basic system properties for Juniper devices and returns these facts in a consistent and structured data structure. We can use the facts collected by this module in order to validate the basic properties and operational state of our devices, and we can use this data to build simple reports that capture the state of our devices.
In this recipe, we use the junos_facts module to collect the device facts for all our Juniper devices. This module returns the basic facts collected by Ansible for each device in multiple variables, as follows:
"Ansible_net_serialnum": "VM5D112EFB39","Ansible_net_system": "junos","Ansible_net_version": "17.1R1.8","Ansible_network_os": "junos",
Read now
Unlock full access