jlk@ubuntu:/etc/ansible/roles/vsrx2/defaults$ ansible-playbook facts.pb.yml
Username: jansible
password:
PLAY [Get facts] ***************************************************************************************
TASK [Get junos facts] *********************************************************************************
ok: [vsrx1]
TASK [Print facts] *************************************************************************************
ok: [vsrx1] => {
"junos": {
"ansible_facts": {
"junos": {
"HOME": "/var/home/jansible",
"RE0": {
"last_reboot_reason": "Router rebooted after a normal shutdown.",
"mastership_state": "master",
"model": "FIREFLY-PERIMETER RE",
"status": "Testing",
"up_time": "14 hours, 20 minutes, 14 seconds"
},
"RE1": null,
}
},
"changed": false,
"facts": {
"HOME": "/var/home/jansible",
"RE0": {
"last_reboot_reason": "Router rebooted after a normal shutdown.",
"mastership_state": "master",
"model": "FIREFLY-PERIMETER RE",
"status": "Testing",
"up_time": "14 hours, 20 minutes, 14 seconds"
. . .
},
"text": "12.1X47-D20.7"
}
},
"master": "RE0",
. . .
"re_name": "re0",
"serialnumber": "ecd559ca309b",
"srx_cluster": false,
"srx_cluster_id": null,
"srx_cluster_redundancy_group": null,