In this recipe, we will retrieve the basis system facts collected by Ansible for a Juniper device. These basic system facts provide us with a basic health check regarding our Juniper devices, which we can use to validate its operational state.
NETCONF must be enabled on the Juniper devices so as to use the Ansible modules in this recipe.
- Create a new playbook, pb_jnpr_facts.yml, with the following task to collect the facts:
$ cat pb_jnpr_facts.yml
- name: Collect and Validate Juniper Facts