Skip to content

Instantly share code, notes, and snippets.

@rohitthakur2590
Created July 4, 2023 11:29
Show Gist options
  • Save rohitthakur2590/d73a8d93836ff71a5f50e824dfdafff0 to your computer and use it in GitHub Desktop.
Save rohitthakur2590/d73a8d93836ff71a5f50e824dfdafff0 to your computer and use it in GitHub Desktop.
Network OSPF Detect
ansible-playbook [core 2.14.3]
config file = /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/ansible.cfg
configured module search path = ['/home/rothakur/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.11/site-packages/ansible
ansible collection location = /home/rothakur/ansible-collections/collections
executable location = /usr/local/bin/ansible-playbook
python version = 3.11.3 (main, Apr 5 2023, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)] (/usr/bin/python3)
jinja version = 3.0.3
libyaml = False
Using /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/ansible.cfg as config file
host_list declined parsing /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/inventory as it did not pass its verify_file() method
script declined parsing /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/inventory as it did not pass its verify_file() method
auto declined parsing /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/inventory as it did not pass its verify_file() method
Parsed /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/inventory inventory source with ini plugin
[WARNING]: running playbook inside collection network.ospf
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.
PLAYBOOK: detect.yaml ************************************************************************************************************************************************************************
1 plays in detect.yaml
PLAY [rtr1] **********************************************************************************************************************************************************************************
TASK [Network OSPF Manager] ******************************************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/detect.yaml:5
TASK [network.ospf.run : Include tasks] ******************************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/roles/run/tasks/main.yml:2
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/roles/run/tasks/includes/detect.yaml for rtr1 => (item={'name': 'detect'})
TASK [Invoke detect function] ****************************************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/roles/run/tasks/includes/detect.yaml:2
TASK [network.base.resource_manager : Run the platform specific tasks] ***********************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/main.yaml:2
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/./detect.yaml for rtr1 => (item=/home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/detect.yaml)
TASK [network.base.resource_manager : Get the supported resource modules] ********************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/detect.yaml:2
ok: [rtr1] => {
"ansible_connection": "ansible.netcommon.network_cli",
"ansible_network_os": "cisco.ios.ios",
"changed": false,
"modules": [
"acl_interfaces",
"acls",
"bgp_address_family",
"bgp_global",
"hostname",
"interfaces",
"l2_interfaces",
"l3_interfaces",
"lacp",
"lacp_interfaces",
"lag_interfaces",
"lldp_global",
"lldp_interfaces",
"logging_global",
"ntp_global",
"ospf_interfaces",
"ospfv2",
"ospfv3",
"prefix_lists",
"route_maps",
"snmp_server",
"static_routes",
"vlans"
]
}
TASK [network.base.resource_manager : Set resources] *****************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/detect.yaml:7
ok: [rtr1] => {
"ansible_facts": {
"resource_manager_resources": [
"acl_interfaces",
"acls",
"bgp_address_family",
"bgp_global",
"hostname",
"interfaces",
"l2_interfaces",
"l3_interfaces",
"lacp",
"lacp_interfaces",
"lag_interfaces",
"lldp_global",
"lldp_interfaces",
"logging_global",
"ntp_global",
"ospf_interfaces",
"ospfv2",
"ospfv3",
"prefix_lists",
"route_maps",
"snmp_server",
"static_routes",
"vlans"
]
},
"changed": false
}
TASK [network.base.resource_manager : Set Network resources] *********************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/detect.yaml:12
ok: [rtr1] => {
"ansible_facts": {
"resource_manager_network_resources": {
"actionable": [
"acl_interfaces",
"acls",
"bgp_address_family",
"bgp_global",
"hostname",
"interfaces",
"l2_interfaces",
"l3_interfaces",
"lacp",
"lacp_interfaces",
"lag_interfaces",
"lldp_global",
"lldp_interfaces",
"logging_global",
"ntp_global",
"ospf_interfaces",
"ospfv2",
"ospfv3",
"prefix_lists",
"route_maps",
"snmp_server",
"static_routes",
"vlans"
],
"unsupported": []
}
},
"changed": false
}
TASK [network.base.resource_manager : Resolve inventory] *************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/detect.yaml:16
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/inventory.yaml for rtr1
TASK [network.base.resource_manager : Set default host vars path] ****************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/inventory.yaml:2
skipping: [rtr1] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [network.base.resource_manager : Set default host vars path] ****************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/inventory.yaml:7
ok: [rtr1] => {
"ansible_facts": {
"resource_manager_inventory_directory": "~/network/ospf/"
},
"changed": false
}
TASK [network.base.resource_manager : Set default path] **************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/inventory.yaml:12
skipping: [rtr1] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [network.base.resource_manager : Set default path] **************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/inventory.yaml:17
ok: [rtr1] => {
"ansible_facts": {
"resource_manager_inventory_path": "~/network/ospf/"
},
"changed": false
}
TASK [network.base.resource_manager : Retrieve a repository from a distant location and make it available locally] ***************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/detect.yaml:19
skipping: [rtr1] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [network.base.resource_manager : Get list of SOT files] *********************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/detect.yaml:23
<35.155.113.92> ESTABLISH LOCAL CONNECTION FOR USER: rothakur
<35.155.113.92> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/rothakur/.ansible/tmp/ansible-local-5663484_n81xvw `"&& mkdir "` echo /home/rothakur/.ansible/tmp/ansible-local-5663484_n81xvw/ansible-tmp-1688469989.8432524-566395-195185959139287 `" && echo ansible-tmp-1688469989.8432524-566395-195185959139287="` echo /home/rothakur/.ansible/tmp/ansible-local-5663484_n81xvw/ansible-tmp-1688469989.8432524-566395-195185959139287 `" ) && sleep 0'
Using module file /usr/local/lib/python3.11/site-packages/ansible/modules/find.py
<35.155.113.92> PUT /home/rothakur/.ansible/tmp/ansible-local-5663484_n81xvw/tmpvmrq0pok TO /home/rothakur/.ansible/tmp/ansible-local-5663484_n81xvw/ansible-tmp-1688469989.8432524-566395-195185959139287/AnsiballZ_find.py
<35.155.113.92> EXEC /bin/sh -c 'chmod u+x /home/rothakur/.ansible/tmp/ansible-local-5663484_n81xvw/ansible-tmp-1688469989.8432524-566395-195185959139287/ /home/rothakur/.ansible/tmp/ansible-local-5663484_n81xvw/ansible-tmp-1688469989.8432524-566395-195185959139287/AnsiballZ_find.py && sleep 0'
<35.155.113.92> EXEC /bin/sh -c '/usr/bin/python3 /home/rothakur/.ansible/tmp/ansible-local-5663484_n81xvw/ansible-tmp-1688469989.8432524-566395-195185959139287/AnsiballZ_find.py && sleep 0'
<35.155.113.92> EXEC /bin/sh -c 'rm -f -r /home/rothakur/.ansible/tmp/ansible-local-5663484_n81xvw/ansible-tmp-1688469989.8432524-566395-195185959139287/ > /dev/null 2>&1 && sleep 0'
ok: [rtr1] => {
"changed": false,
"examined": 4,
"files": [
{
"atime": 1688459975.6341355,
"ctime": 1688459218.0745635,
"dev": 39,
"gid": 1000,
"gr_name": "rothakur",
"inode": 13473563,
"isblk": false,
"ischr": false,
"isdir": false,
"isfifo": false,
"isgid": false,
"islnk": false,
"isreg": true,
"issock": false,
"isuid": false,
"mode": "0777",
"mtime": 1688459217.8855631,
"nlink": 1,
"path": "/home/rothakur/network/ospf/host_vars/rtr1/ospf_interfaces.yaml",
"pw_name": "rothakur",
"rgrp": true,
"roth": true,
"rusr": true,
"size": 717,
"uid": 1000,
"wgrp": true,
"woth": true,
"wusr": true,
"xgrp": true,
"xoth": true,
"xusr": true
},
{
"atime": 1688465877.4979339,
"ctime": 1688469979.0330749,
"dev": 39,
"gid": 1000,
"gr_name": "rothakur",
"inode": 13473578,
"isblk": false,
"ischr": false,
"isdir": false,
"isfifo": false,
"isgid": false,
"islnk": false,
"isreg": true,
"issock": false,
"isuid": false,
"mode": "0777",
"mtime": 1688469979.018075,
"nlink": 1,
"path": "/home/rothakur/network/ospf/host_vars/rtr1/ospfv2.yaml",
"pw_name": "rothakur",
"rgrp": true,
"roth": true,
"rusr": true,
"size": 388,
"uid": 1000,
"wgrp": true,
"woth": true,
"wusr": true,
"xgrp": true,
"xoth": true,
"xusr": true
}
],
"invocation": {
"module_args": {
"age": null,
"age_stamp": "mtime",
"contains": null,
"depth": null,
"excludes": null,
"file_type": "file",
"follow": false,
"get_checksum": false,
"hidden": false,
"paths": [
"~/network/ospf//host_vars/rtr1"
],
"patterns": [
"*.yaml"
],
"read_whole_file": false,
"recurse": false,
"size": null,
"use_regex": false
}
},
"matched": 2,
"msg": "All paths examined",
"skipped_paths": {}
}
TASK [network.base.resource_manager : Set default state as 'overridden'] *********************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/detect.yaml:31
ok: [rtr1] => {
"ansible_facts": {
"resource_manager_state": "overridden"
},
"changed": false
}
TASK [network.base.resource_manager : Include check_drift task] ******************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/detect.yaml:36
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml for rtr1 => (item=ospf_interfaces.yaml)
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml for rtr1 => (item=ospfv2.yaml)
TASK [network.base.resource_manager : Set facts] *********************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml:2
ok: [rtr1] => {
"ansible_facts": {
"resource_manager_resource": "ospf_interfaces"
},
"changed": false
}
TASK [network.base.resource_manager : Grab the resource facts] *******************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml:9
ok: [rtr1] => {
"ansible_facts": {
"module_vars": {
"ospf_interfaces": [
{
"address_family": [
{
"afi": "ipv4",
"process": {
"area_id": "0",
"id": 110
}
}
],
"name": "Loopback27"
},
{
"address_family": [
{
"afi": "ipv4",
"process": {
"area_id": "0",
"id": 110
}
}
],
"name": "Loopback28"
},
{
"address_family": [
{
"afi": "ipv4",
"process": {
"area_id": "0",
"id": 110
}
}
],
"name": "Loopback29"
},
{
"address_family": [
{
"afi": "ipv4",
"process": {
"area_id": "0",
"id": 110
}
}
],
"name": "Loopback37"
},
{
"name": "Loopback38"
},
{
"name": "Loopback39"
},
{
"name": "GigabitEthernet0/0"
},
{
"name": "GigabitEthernet0/1"
},
{
"name": "GigabitEthernet0/2"
},
{
"name": "GigabitEthernet0/3"
},
{
"name": "GigabitEthernet0/4"
},
{
"name": "GigabitEthernet0/5"
}
]
}
},
"ansible_included_var_files": [
"/home/rothakur/network/ospf/host_vars/rtr1/ospf_interfaces.yaml"
],
"changed": false
}
TASK [network.base.resource_manager : Check for config drift] ********************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml:14
ok: [rtr1] => {
"ansible_connection": "ansible.netcommon.network_cli",
"ansible_network_os": "cisco.ios.ios",
"before": [
{
"address_family": [
{
"afi": "ipv4",
"process": {
"area_id": "0",
"id": 110
}
}
],
"name": "Loopback27"
},
{
"address_family": [
{
"afi": "ipv4",
"process": {
"area_id": "0",
"id": 110
}
}
],
"name": "Loopback28"
},
{
"address_family": [
{
"afi": "ipv4",
"process": {
"area_id": "0",
"id": 110
}
}
],
"name": "Loopback29"
},
{
"address_family": [
{
"afi": "ipv4",
"process": {
"area_id": "0",
"id": 110
}
}
],
"name": "Loopback37"
},
{
"name": "Loopback38"
},
{
"name": "Loopback39"
},
{
"name": "GigabitEthernet0/0"
},
{
"name": "GigabitEthernet0/1"
},
{
"name": "GigabitEthernet0/2"
},
{
"name": "GigabitEthernet0/3"
},
{
"name": "GigabitEthernet0/4"
},
{
"name": "GigabitEthernet0/5"
}
],
"changed": false,
"commands": [],
"invocation": {
"module_args": {
"config": [
{
"address_family": [
{
"adjacency": null,
"afi": "ipv4",
"authentication": null,
"bfd": null,
"cost": null,
"database_filter": null,
"dead_interval": null,
"demand_circuit": null,
"flood_reduction": null,
"hello_interval": null,
"lls": null,
"manet": null,
"mtu_ignore": null,
"multi_area": null,
"neighbor": null,
"network": null,
"prefix_suppression": null,
"priority": null,
"process": {
"area_id": "0",
"id": 110,
"instance_id": null,
"secondaries": null
},
"resync_timeout": null,
"retransmit_interval": null,
"shutdown": null,
"transmit_delay": null,
"ttl_security": null
}
],
"name": "Loopback27"
},
{
"address_family": [
{
"adjacency": null,
"afi": "ipv4",
"authentication": null,
"bfd": null,
"cost": null,
"database_filter": null,
"dead_interval": null,
"demand_circuit": null,
"flood_reduction": null,
"hello_interval": null,
"lls": null,
"manet": null,
"mtu_ignore": null,
"multi_area": null,
"neighbor": null,
"network": null,
"prefix_suppression": null,
"priority": null,
"process": {
"area_id": "0",
"id": 110,
"instance_id": null,
"secondaries": null
},
"resync_timeout": null,
"retransmit_interval": null,
"shutdown": null,
"transmit_delay": null,
"ttl_security": null
}
],
"name": "Loopback28"
},
{
"address_family": [
{
"adjacency": null,
"afi": "ipv4",
"authentication": null,
"bfd": null,
"cost": null,
"database_filter": null,
"dead_interval": null,
"demand_circuit": null,
"flood_reduction": null,
"hello_interval": null,
"lls": null,
"manet": null,
"mtu_ignore": null,
"multi_area": null,
"neighbor": null,
"network": null,
"prefix_suppression": null,
"priority": null,
"process": {
"area_id": "0",
"id": 110,
"instance_id": null,
"secondaries": null
},
"resync_timeout": null,
"retransmit_interval": null,
"shutdown": null,
"transmit_delay": null,
"ttl_security": null
}
],
"name": "Loopback29"
},
{
"address_family": [
{
"adjacency": null,
"afi": "ipv4",
"authentication": null,
"bfd": null,
"cost": null,
"database_filter": null,
"dead_interval": null,
"demand_circuit": null,
"flood_reduction": null,
"hello_interval": null,
"lls": null,
"manet": null,
"mtu_ignore": null,
"multi_area": null,
"neighbor": null,
"network": null,
"prefix_suppression": null,
"priority": null,
"process": {
"area_id": "0",
"id": 110,
"instance_id": null,
"secondaries": null
},
"resync_timeout": null,
"retransmit_interval": null,
"shutdown": null,
"transmit_delay": null,
"ttl_security": null
}
],
"name": "Loopback37"
},
{
"address_family": null,
"name": "Loopback38"
},
{
"address_family": null,
"name": "Loopback39"
},
{
"address_family": null,
"name": "GigabitEthernet0/0"
},
{
"address_family": null,
"name": "GigabitEthernet0/1"
},
{
"address_family": null,
"name": "GigabitEthernet0/2"
},
{
"address_family": null,
"name": "GigabitEthernet0/3"
},
{
"address_family": null,
"name": "GigabitEthernet0/4"
},
{
"address_family": null,
"name": "GigabitEthernet0/5"
}
],
"running_config": null,
"state": "overridden"
}
},
"resource_module_name": "cisco.ios.ios_ospf_interfaces"
}
TASK [network.base.resource_manager : Show the difference in configuration] ******************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml:24
skipping: [rtr1] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [network.base.resource_manager : Detect if there is config drift.] **********************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml:30
skipping: [rtr1] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [network.base.resource_manager : Set facts] *********************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml:2
ok: [rtr1] => {
"ansible_facts": {
"resource_manager_resource": "ospfv2"
},
"changed": false
}
TASK [network.base.resource_manager : Grab the resource facts] *******************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml:9
ok: [rtr1] => {
"ansible_facts": {
"module_vars": {
"ospfv2": {
"processes": [
{
"network": [
{
"address": "10.0.12.1",
"area": "0",
"wildcard_bits": "0.0.0.0"
},
{
"address": "11.0.13.1",
"area": "0",
"wildcard_bits": "0.0.0.0"
}
],
"process_id": 110,
"router_id": "1.1.1.1"
},
{
"max_metric": {
"on_startup": {
"time": 100
},
"router_lsa": true
},
"process_id": 111
}
]
}
}
},
"ansible_included_var_files": [
"/home/rothakur/network/ospf/host_vars/rtr1/ospfv2.yaml"
],
"changed": false
}
TASK [network.base.resource_manager : Check for config drift] ********************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml:14
changed: [rtr1] => {
"after": {
"processes": [
{
"network": [
{
"address": "10.0.12.1",
"area": "0",
"wildcard_bits": "0.0.0.0"
},
{
"address": "11.0.13.1",
"area": "0",
"wildcard_bits": "0.0.0.0"
}
],
"process_id": 110,
"router_id": "1.1.1.1"
},
{
"max_metric": {
"on_startup": {
"time": 120
},
"router_lsa": true
},
"process_id": 111
}
]
},
"ansible_connection": "ansible.netcommon.network_cli",
"ansible_network_os": "cisco.ios.ios",
"before": {
"processes": [
{
"network": [
{
"address": "10.0.12.1",
"area": "0",
"wildcard_bits": "0.0.0.0"
},
{
"address": "11.0.13.1",
"area": "0",
"wildcard_bits": "0.0.0.0"
}
],
"process_id": 110,
"router_id": "1.1.1.1"
},
{
"max_metric": {
"on_startup": {
"time": 120
},
"router_lsa": true
},
"process_id": 111
}
]
},
"changed": true,
"commands": [
"router ospf 111",
"max-metric router-lsa on-startup 100"
],
"invocation": {
"module_args": {
"config": {
"processes": [
{
"address_family": null,
"adjacency": null,
"areas": null,
"auto_cost": null,
"bfd": null,
"capability": null,
"compatible": null,
"default_information": null,
"default_metric": null,
"discard_route": null,
"distance": null,
"distribute_list": null,
"domain_id": null,
"domain_tag": null,
"event_log": null,
"help": null,
"ignore": null,
"interface_id": null,
"ispf": null,
"limit": null,
"local_rib_criteria": null,
"log_adjacency_changes": null,
"max_lsa": null,
"max_metric": null,
"maximum_paths": null,
"mpls": null,
"neighbor": null,
"network": [
{
"address": "10.0.12.1",
"area": "0",
"wildcard_bits": "0.0.0.0"
},
{
"address": "11.0.13.1",
"area": "0",
"wildcard_bits": "0.0.0.0"
}
],
"nsf": null,
"passive_interface": null,
"passive_interfaces": null,
"prefix_suppression": null,
"priority": null,
"process_id": 110,
"queue_depth": null,
"router_id": "1.1.1.1",
"shutdown": null,
"summary_address": null,
"timers": null,
"traffic_share": null,
"ttl_security": null,
"vrf": null
},
{
"address_family": null,
"adjacency": null,
"areas": null,
"auto_cost": null,
"bfd": null,
"capability": null,
"compatible": null,
"default_information": null,
"default_metric": null,
"discard_route": null,
"distance": null,
"distribute_list": null,
"domain_id": null,
"domain_tag": null,
"event_log": null,
"help": null,
"ignore": null,
"interface_id": null,
"ispf": null,
"limit": null,
"local_rib_criteria": null,
"log_adjacency_changes": null,
"max_lsa": null,
"max_metric": {
"external_lsa": null,
"include_stub": null,
"on_startup": {
"time": 100,
"wait_for_bgp": null
},
"router_lsa": true,
"summary_lsa": null
},
"maximum_paths": null,
"mpls": null,
"neighbor": null,
"network": null,
"nsf": null,
"passive_interface": null,
"passive_interfaces": null,
"prefix_suppression": null,
"priority": null,
"process_id": 111,
"queue_depth": null,
"router_id": null,
"shutdown": null,
"summary_address": null,
"timers": null,
"traffic_share": null,
"ttl_security": null,
"vrf": null
}
]
},
"running_config": null,
"state": "overridden"
}
},
"resource_module_name": "cisco.ios.ios_ospfv2"
}
TASK [network.base.resource_manager : Show the difference in configuration] ******************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml:24
--- before
+++ after
@@ -19,7 +19,7 @@
{
"max_metric": {
"on_startup": {
- "time": 120
+ "time": 100
},
"router_lsa": true
},
changed: [rtr1] => {
"changed": true,
"diff": {
"prepared": "\u001b[0;31m--- before\u001b[0m\n\u001b[0;31m\u001b[0m\u001b[0;32m+++ after\u001b[0m\n\u001b[0;32m\u001b[0m\u001b[0;36m@@ -19,7 +19,7 @@\u001b[0m\n\u001b[0;36m\u001b[0m {\n \"max_metric\": {\n \"on_startup\": {\n\u001b[0;31m- \"time\": 120\u001b[0m\n\u001b[0;31m\u001b[0m\u001b[0;32m+ \"time\": 100\u001b[0m\n\u001b[0;32m\u001b[0m },\n \"router_lsa\": true\n },\n\n"
},
"diff_lines": [
"--- before",
"+++ after",
"@@ -19,7 +19,7 @@",
" {",
" \"max_metric\": {",
" \"on_startup\": {",
"- \"time\": 120",
"+ \"time\": 100",
" },",
" \"router_lsa\": true",
" },",
""
],
"diff_text": "--- before\n+++ after\n@@ -19,7 +19,7 @@\n {\n \"max_metric\": {\n \"on_startup\": {\n- \"time\": 120\n+ \"time\": 100\n },\n \"router_lsa\": true\n },\n\n"
}
TASK [network.base.resource_manager : Detect if there is config drift.] **********************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml:30
fatal: [rtr1]: FAILED! => {
"changed": false,
"msg": "configuration drift is found in cisco.ios.ios_ospfv2 Resource"
}
PLAY RECAP ***********************************************************************************************************************************************************************************
rtr1 : ok=19 changed=2 unreachable=0 failed=1 skipped=5 rescued=0 ignored=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment