jlk@ubuntu:/etc/ansible/roles/ex3400$ ansible-playbook tasks/main.yml --verbose
Using /etc/ansible/ansible.cfg as config file
PLAY [Get facts Play] *******************************************************************************************************************
ok:
TASK [172.30.95.194] => {"ansible_facts": {"junos": {"HOME": "/var/home/jansible", "RE0": {"last_reboot_reason": "Router rebooted after a normal shutdown.", "mastership_state": "master", "model": "EX4300-48T", "status": "OK", "up_time": "31 days, 4 hours, 18 minutes, 40 seconds"}, "RE1Checking NETCONF connectivity Task] ***********************************************************************************************
ok: [172.30.95.194] => {"changed": false, "elapsed": 0, "path": null, "port": 830, "search_regex": null, "RE_hw_mistate": false, "current_re": ["master", "node", "fwdd", "member", "pfem", "re0", "fpc0", "localre"], "domain": null, "fqdn": "EX4300-R103-34", "has_2RE": false, "hostname": "EX4300-R103-34", "hostname_info": {"fpc0": "EX4300-R103-34"}, "ifd_style": "SWITCH", "junos_info": {"fpc0": {"object": {"build": 8, "major": [18, 4], "minor": "1", "type": "R"}, "text": "18.4R1.8"}}, "master": "RE0", "master_state": true, "model": "EX4300-48T", "model_info": {"fpc0": "EX4300-48T"}, "personality": "SWITCH", "re_info": {"default": {"0": {"last_reboot_reason": "Router rebooted after a normal shutdown.", "mastership_state": "master", "model": "EX4300-48T", "status": "OK"}, "default": {"last_reboot_reason": "Router rebooted after a normal shutdown.", "mastership_state": "master", "model": "EX4300-48T", "status": "OK"}}}, "re_master": {"default": "0"}, "re_name": "fpc0", "serialnumber": "PE3717290399", "srx_cluster": null, "srx_cluster_id": null, "srx_cluster_redundancy_group": null, "switch_style": "VLAN_L2NG", "vc_capable": true, "vc_fabric": false, "vc_master": "0", "vc_mode": "Enabled", "version": "18.4R1.8", "version_RE0": null, "version_RE1": null, "version_info": {"build": 8, "major": [18, 4], "minor": "1", "type": "R"}, "virtual": false}}, "changed": false, "facts": {"HOME": "/var/home/jansible", "RE0": {"last_reboot_reason": "Router rebooted after a normal shutdown.", "mastership_state": "master", "model": "EX4300-48T", "status": "OK", "up_time": "31 days, 4 hours, 18 minutes, 40 seconds"}, "RE1": null, "RE_hw_mi": false, "current_re": ["master", "node", "fwdd", "member", "pfem", "re0", "fpc0", "localre"], "domain": null, "fqdn": "EX4300-R103-34", "has_2RE": false, "hostname": "EX4300-R103-34", "hostname_info": {"fpc0": "EX4300-R103-34"}, "ifd_style": "SWITCH", "junos_info": {"fpc0": {"object": {"build": 8, "major": [18, 4], "minor": "1", "type": "R"}, "text": "18.4R1.8"}}, "master": "RE0", "master_state": true, "model": "EX4300-48T", "model_info": {"fpc0": "EX4300-48T"}, "personality": "SWITCH", "re_info": {"default": {"0": {"last_reboot_reason": "Router rebooted after a normal shutdown.", "mastership_state": "master", "model": "EX4300-48T", "status": "OK"}, "default": {"last_reboot_reason": "Router rebooted after a normal shutdown.", "mastership_state": "master", "model": "EX4300-48T", "status": "OK"}}}, "re_master": {"default": "0"}, "re_name": "fpc0", "serialnumber": "PE3717290399", "srx_cluster": null, "srx_cluster_id": null, "srx_cluster_redundancy_group": null, "switch_style": "VLAN_L2NG", "vc_capable": true, "vc_fabric": false, "vc_master": "0", "vc_mode": "Enabled", "version": "18.4R1.8", "version_RE0": null, "version_RE1": null, "version_info": {"build": 8, "major": [18, 4], "minor": "1", "type": "R"}, "virtual": false}}
TASK [Print facts] **********************************************************************************************************************
ok: [172.30.95.194] => {
"junos": {
"HOME": "/var/home/jansible",
"RE0": {
"last_reboot_reason": "Router rebooted after a normal shutdown.",
"mastership_state": "master",
"model": "EX4300-48T",
started"}
TASK [Get junos facts Task] *************************************************************************************************************
ok: [172.30.95.194] => {"ansible_facts": {"junos": {"HOME": "/var/home/jansible", "RE0": {"last_reboot_reason": "Router rebooted after a normal shutdown.", "mastership_state": "master", "model": "EX4300-48T", "status": "OK", "up_time": "31 days, 4 hours, 18 minutes, 40 seconds"}, "RE1": null, "RE_hw_mi": false, "current_re": ["master", "node", "fwdd", "member", "pfem", "re0", "fpc0", "localre"], "domain": null, "fqdn": "EX4300-R103-34", "has_2RE": false, "hostname": "EX4300-R103-34", "hostname_info": {"fpc0": "EX4300-R103-34"}, "ifd_style": "SWITCH", "junos_info": {"fpc0": {"object": {"build": 8, "major": [18, 4], "minor": "1", "type": "R"}, "text": "18.4R1.8"}}, "master": "RE0", "master_state": true, "model": "EX4300-48T", "model_info": {"fpc0": "EX4300-48T"}, "personality": "SWITCH", "re_info": {"default": {"0": {"last_reboot_reason": "Router rebooted after a normal shutdown.", "mastership_state": "master", "model": "EX4300-48T", "status": "OK"}, "default": {"last_reboot_reason": "Router rebooted after a normal shutdown.", "mastership_state": "master", "model": "EX4300-48T", "status": "OK"}}}, "re_master": {"default": "0"}, "re_name": "fpc0", "serialnumber": "PE3717290399", "srx_cluster": null, "srx_cluster_id": null, "srx_cluster_redundancy_group": null, "switch_style": "VLAN_L2NG", "vc_capable": true, "vc_fabric": false, "vc_master": "0", "vc_mode": "Enabled", "version": "18.4R1.8", "version_RE0": null, "version_RE1": null, "version_info": {"build": 8, "major": [18, 4], "minor": "1", "type": "R"}, "virtual": false}}, "changed": false, "facts": {"HOME": "/var/home/jansible", "RE0": {"last_reboot_reason": "Router rebooted after a normal shutdown.", "mastership_state": "master", "model": "EX4300-48T", "status": "OK", "up_time": "31 days, 4 hours, 18 minutes, 40 seconds"}, "RE1": null, "RE_hw_mi": false, "current_re": ["master", "node", "fwdd", "member", "pfem", "re0", "fpc0", "localre"], "domain": null, "fqdn": "EX4300-R103-34", "has_2RE": false, "hostname": "EX4300-R103-34", "hostname_info": {"fpc0": "EX4300-R103-34"}, "ifd_style": "SWITCH", "junos_info": {"fpc0": {"object": {"build": 8, "major": [18, 4], "minor": "1", "type": "R"}, "text": "18.4R1.8"}}, "master": "RE0", "master_state": true, "model": "EX4300-48T", "model_info": {"fpc0": "EX4300-48T"}, "personality": "SWITCH", "re_info": {"default": {"0": {"last_reboot_reason": "Router rebooted after a normal shutdown.", "mastership_state": "master", "model": "EX4300-48T", "status": "OK"}, "default": {"last_reboot_reason": "Router rebooted after a normal shutdown.", "mastership_state": "master", "model": "EX4300-48T", "status": "OK"}}}, "re_master": {"default": "0"}, "re_name": "fpc0", "serialnumber": "PE3717290399", "srx_cluster": null, "srx_cluster_id": null, "srx_cluster_redundancy_group": null, "switch_style": "VLAN_L2NG", "vc_capable": true, "vc_fabric": false, "vc_master": "0", "vc_mode": "Enabled", "version": "18.4R1.8", "version_RE0": null, "version_RE1": null, "version_info": {"build": 8, "major": [18, 4], "minor": "1", "type": "R"}, "virtual": false}}
TASK [Print facts] **********************************************************************************************************************
ok: [172.30.95.194] => {
"junos": {
"statusHOME": "OK/var/home/jansible",
"up_time"RE0": "31{
days, 4 hours, 18 minutes, 40 seconds" "last_reboot_reason": "Router rebooted },after a normal shutdown.",
"RE1": null, "REmastership_hw_mistate": false"master",
"current_re": [ "model": "EX4300-48T",
"status": "masterOK",
"node""up_time": "31 days, 4 hours, 18 minutes, 40 seconds"
"fwdd"},
"RE1": null,
"member", "RE_hw_mi": false,
"pfemcurrent_re",: [
"re0master",
"fpc0node",
"localrefwdd",
], "member",
"domain": null, "fqdn": "EX4300-R103-34"pfem",
"has_2RE": false, "re0",
"hostname": "EX4300-R103-34", "hostname_info": {"fpc0",
"fpc0localre":
"EX4300-R103-34" }],
"ifd_styledomain": "SWITCH"null,
"junos_infofqdn": { "EX4300-R103-34",
"has_2RE": false,
"fpc0": { "hostname": "EX4300-R103-34",
"objecthostname_info": {
"buildfpc0": 8,"EX4300-R103-34"
},
"major"ifd_style": ["SWITCH",
"junos_info": {
18,"fpc0": {
"object": {
4 ]"build": 8,
"minormajor": "1",[
"type": "R" 18,
}, 4
"text": "18.4R1.8" }],
}, "masterminor": "RE01",
"master_state": true, "modeltype": "EX4300-48T",R"
"model_info": {},
"fpc0text": "EX4300-48T18.4R1.8"
}, }
"personality": "SWITCH" },
"re_infomaster": {"RE0",
"master_state": true,
"default": { "model": "EX4300-48T",
"0model_info": {
"last_reboot_reason"fpc0": "Router rebooted after a normal shutdown.",EX4300-48T"
},
"mastership_statepersonality": "masterSWITCH",
"re_info": {
"model": "EX4300-48T",
"status": "OK"
}, "default": {
"default0": {
"last_reboot_reason": "Router rebooted after a normal shutdown.",
"mastership_state": "master",
"model": "EX4300-48T",
"status": "OK"
},
} "default": {
}, "re_master": { "last_reboot_reason": "Router rebooted after a normal "default": "0"shutdown.",
}, "remastership_namestate": "fpc0master",
"serialnumber": "PE3717290399", "srx_clustermodel": null"EX4300-48T",
"srx_cluster_id": null, "srx_cluster_redundancy_groupstatus": null,"OK"
"switch_style": "VLAN_L2NG", }
"vc_capable": true, }
"vc_fabric": false },
"vcre_master": "0", {
"vc_modedefault": "Enabled0",
"version": "18.4R1.8"},
"versionre_RE0name": null"fpc0",
"version_RE1serialnumber": null"PE3717290399",
"versionsrx_infocluster": {null,
"build"srx_cluster_id": 8null,
"major"srx_cluster_redundancy_group": [null,
"switch_style": "VLAN_L2NG",
18, "vc_capable": true,
"vc_fabric": false,
4 ],"vc_master": "0",
"vc_mode": "Enabled",
"minorversion": "118.4R1.8",
"typeversion_RE0": "R" null,
}"version_RE1": null,
"virtualversion_info": {
false } } PLAY RECAP ******************************************************************************************* "build": 8,
"major": [
18,
4
],
"minor": "1",
"type": "R"
},
"virtual": false
}
}
PLAY RECAP ***************************************************************************
172.30.95.194*********************************************************************
172.30.95.194 : ok=3 changed=0 unreachable=0 failed=0 |