/project # ansible-playbook -i hosts pbk_getfacts.yml
[DEPRECATION WARNING]: The TRANSFORM_INVALID_GROUP_CHARS settings is set to allow bad characters in group names by
default, this will change, but still be user configurable on deprecation. This feature will be removed in version
2.10. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
PLAY [Get facts] ***************************************************************************************************
TASK [Get junos facts] *********************************************************************************************
[WARNING]: Platform linux on host 172.30.95.174 is using the discovered Python interpreter at /usr/bin/python, but
future installation of another Python interpreter could change this. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information.
ok: [172.30.95.174]
TASK [Print facts] *************************************************************************************************
ok: [172.30.95.174] => {
"junos": {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python",
"junos": {
"HOME": "/var/home/********",
"RE0": {
"last_reboot_reason": "0x200:normal shutdown",
"mastership_state": "master",
"model": "RE-SRX300",
"status": "OK",
"up_time": "103 days, 18 hours, 47 minutes, 47 seconds"
},
"RE1": null,
"RE_hw_mi": false,
"current_re": [
"master",
"node",
"fwdd",
"member",
"pfem",
"backup",
"fpc0",
"re0",
"fpc0.pic0"
],
"domain": null,
"fqdn": null,
"has_2RE": false,
"hostname": "SRX300-1-RL102",
"hostname_info": {
"re0": "SRX300-1-RL102"
},
"ifd_style": "CLASSIC",
"junos_info": {
"re0": {
"object": {
"build": 10,
"major": [
19,
4
],
"minor": "1",
"type": "R"
},
"text": "19.4R1.10"
}
},
"master": "RE0",
"master_state": true,
"model": "SRX300",
"model_info": {
"re0": "SRX300"
},
"personality": "SRX_BRANCH",
"re_info": {
"default": {
"0": {
"last_reboot_reason": "0x200:normal shutdown",
"mastership_state": "master",
"model": "RE-SRX300",
"status": "OK"
},
"default": {
"last_reboot_reason": "0x200:normal shutdown",
"mastership_state": "master",
"model": "RE-SRX300",
"status": "OK"
}
}
},
"re_master": {
"default": "0"
},
"re_name": "re0",
"serialnumber": "CV3016AF0526",
"srx_cluster": false,
"srx_cluster_id": null,
"srx_cluster_redundancy_group": null,
"switch_style": "VLAN_L2NG",
"vc_capable": false,
"vc_fabric": null,
"vc_master": null,
"vc_mode": null,
"version": "19.4R1.10",
"version_RE0": "19.4R1.10",
"version_RE1": null,
"version_info": {
"build": 10,
"major": [
19,
4
],
"minor": "1",
"type": "R"
},
"virtual": false
}
},
"changed": false,
"facts": {
"HOME": "/var/home/********",
"RE0": {
"last_reboot_reason": "0x200:normal shutdown",
"mastership_state": "master",
"model": "RE-SRX300",
"status": "OK",
"up_time": "103 days, 18 hours, 47 minutes, 47 seconds"
},
"RE1": null,
"RE_hw_mi": false,
"current_re": [
"master",
"node",
"fwdd",
"member",
"pfem",
"backup",
"fpc0",
"re0",
"fpc0.pic0"
],
"domain": null,
"fqdn": null,
"has_2RE": false,
"hostname": "SRX300-1-RL102",
"hostname_info": {
"re0": "SRX300-1-RL102"
},
"ifd_style": "CLASSIC",
"junos_info": {
"re0": {
"object": {
"build": 10,
"major": [
19,
4
],
"minor": "1",
"type": "R"
},
"text": "19.4R1.10"
}
},
"master": "RE0",
"master_state": true,
"model": "SRX300",
"model_info": {
"re0": "SRX300"
},
"personality": "SRX_BRANCH",
"re_info": {
"default": {
"0": {
"last_reboot_reason": "0x200:normal shutdown",
"mastership_state": "master",
"model": "RE-SRX300",
"status": "OK"
},
"default": {
"last_reboot_reason": "0x200:normal shutdown",
"mastership_state": "master",
"model": "RE-SRX300",
"status": "OK"
}
}
},
"re_master": {
"default": "0"
},
"re_name": "re0",
"serialnumber": "CV3016AF0526",
"srx_cluster": false,
"srx_cluster_id": null,
"srx_cluster_redundancy_group": null,
"switch_style": "VLAN_L2NG",
"vc_capable": false,
"vc_fabric": null,
"vc_master": null,
"vc_mode": null,
"version": "19.4R1.10",
"version_RE0": "19.4R1.10",
"version_RE1": null,
"version_info": {
"build": 10,
"major": [
19,
4
],
"minor": "1",
"type": "R"
},
"virtual": false
},
"failed": false,
"warnings": [
"Platform linux on host 172.30.95.174 is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change this. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information."
]
}
}
PLAY RECAP *********************************************************************************************************
172.30.95.174 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
/project # |