Skip to content

Instantly share code, notes, and snippets.

@rohitthakur2590
Created July 4, 2023 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohitthakur2590/be88ec9f6f90300d80565def89718883 to your computer and use it in GitHub Desktop.
Save rohitthakur2590/be88ec9f6f90300d80565def89718883 to your computer and use it in GitHub Desktop.
Network OSPF Deploy
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: deploy.yaml ************************************************************************************************************************************************************************
1 plays in deploy.yaml
[WARNING]: Could not match supplied host pattern, ignoring: ios
PLAY [ios] ***********************************************************************************************************************************************************************************
skipping: no hosts matched
PLAY RECAP ***********************************************************************************************************************************************************************************
[rothakur@localhost ospf]$ ansible-playbook -vvv deploy.yaml
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: deploy.yaml ************************************************************************************************************************************************************************
1 plays in deploy.yaml
PLAY [rtr1] **********************************************************************************************************************************************************************************
TASK [Network OSPF Manager] ******************************************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/deploy.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/deploy.yaml for rtr1 => (item={'name': 'deploy'})
TASK [Invoke gather function] ****************************************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/roles/run/tasks/includes/deploy.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/./deploy.yaml for rtr1 => (item=/home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/deploy.yaml)
TASK [network.base.resource_manager : Include Deploy task] ***********************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/deploy.yaml:2
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/deploy.yaml for rtr1
TASK [network.base.resource_manager : Resolve inventory] *************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/deploy.yaml:2
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/includes/deploy.yaml:5
skipping: [rtr1] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [network.base.resource_manager : Include file write task] *******************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/deploy.yaml:9
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 : Get list of files] *************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/deploy.yaml:12
<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-558472fvcqx3cv `"&& mkdir "` echo /home/rothakur/.ansible/tmp/ansible-local-558472fvcqx3cv/ansible-tmp-1688466947.9971683-558527-82085793894007 `" && echo ansible-tmp-1688466947.9971683-558527-82085793894007="` echo /home/rothakur/.ansible/tmp/ansible-local-558472fvcqx3cv/ansible-tmp-1688466947.9971683-558527-82085793894007 `" ) && 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-558472fvcqx3cv/tmpf_bhhcf1 TO /home/rothakur/.ansible/tmp/ansible-local-558472fvcqx3cv/ansible-tmp-1688466947.9971683-558527-82085793894007/AnsiballZ_find.py
<35.155.113.92> EXEC /bin/sh -c 'chmod u+x /home/rothakur/.ansible/tmp/ansible-local-558472fvcqx3cv/ansible-tmp-1688466947.9971683-558527-82085793894007/ /home/rothakur/.ansible/tmp/ansible-local-558472fvcqx3cv/ansible-tmp-1688466947.9971683-558527-82085793894007/AnsiballZ_find.py && sleep 0'
<35.155.113.92> EXEC /bin/sh -c '/usr/bin/python3 /home/rothakur/.ansible/tmp/ansible-local-558472fvcqx3cv/ansible-tmp-1688466947.9971683-558527-82085793894007/AnsiballZ_find.py && sleep 0'
<35.155.113.92> EXEC /bin/sh -c 'rm -f -r /home/rothakur/.ansible/tmp/ansible-local-558472fvcqx3cv/ansible-tmp-1688466947.9971683-558527-82085793894007/ > /dev/null 2>&1 && sleep 0'
ok: [rtr1] => {
"changed": false,
"examined": 5,
"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": 1688465846.5128434,
"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": 1688465846.5068436,
"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
},
{
"atime": 1688459990.220165,
"ctime": 1688459225.2325783,
"dev": 39,
"gid": 1000,
"gr_name": "rothakur",
"inode": 13473592,
"isblk": false,
"ischr": false,
"isdir": false,
"isfifo": false,
"isgid": false,
"islnk": false,
"isreg": true,
"issock": false,
"isuid": false,
"mode": "0777",
"mtime": 1688459225.1315782,
"nlink": 1,
"path": "/home/rothakur/network/ospf/host_vars/rtr1/ospfv3.yaml",
"pw_name": "rothakur",
"rgrp": true,
"roth": true,
"rusr": true,
"size": 11,
"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": 3,
"msg": "All paths examined",
"skipped_paths": {}
}
TASK [network.base.resource_manager : Include configure task] ********************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/deploy.yaml:20
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/configure.yaml for rtr1 => (item=ospf_interfaces.yaml)
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/configure.yaml for rtr1 => (item=ospfv2.yaml)
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/configure.yaml for rtr1 => (item=ospfv3.yaml)
TASK [network.base.resource_manager : Set facts] *********************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/configure.yaml:2
ok: [rtr1] => {
"ansible_facts": {
"resource_manager_lst": "ospf_interfaces",
"resource_manager_name": "cisco.ios.ios_ospf_interfaces",
"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/configure.yaml:8
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 : Set default state] *************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/configure.yaml:13
ok: [rtr1] => {
"ansible_facts": {
"resource_manager_state": "merged"
},
"changed": false
}
TASK [network.base.resource_manager : Include tasks] *****************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/configure.yaml:18
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/edit_resource.yaml for rtr1
TASK [network.base.resource_manager : Apply provided configuration] **************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/edit_resource.yaml:2
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": "merged"
}
},
"resource_module_name": "cisco.ios.ios_ospf_interfaces"
}
TASK [network.base.resource_manager : Apply configuration] ***********************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/configure.yaml:23
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/configure.yaml:2
ok: [rtr1] => {
"ansible_facts": {
"resource_manager_lst": "ospfv2",
"resource_manager_name": "cisco.ios.ios_ospfv2",
"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/configure.yaml:8
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": 120
},
"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 : Set default state] *************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/configure.yaml:13
skipping: [rtr1] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [network.base.resource_manager : Include tasks] *****************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/configure.yaml:18
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/edit_resource.yaml for rtr1
TASK [network.base.resource_manager : Apply provided configuration] **************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/edit_resource.yaml:2
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"
},
{
"process_id": 111
}
]
},
"changed": true,
"commands": [
"router ospf 111",
"max-metric router-lsa on-startup 120"
],
"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": 120,
"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": "merged"
}
},
"resource_module_name": "cisco.ios.ios_ospfv2"
}
TASK [network.base.resource_manager : Apply configuration] ***********************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/configure.yaml:23
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/configure.yaml:2
ok: [rtr1] => {
"ansible_facts": {
"resource_manager_lst": "ospfv3",
"resource_manager_name": "cisco.ios.ios_ospfv3",
"resource_manager_resource": "ospfv3"
},
"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/configure.yaml:8
ok: [rtr1] => {
"ansible_facts": {
"module_vars": {
"ospfv3": {}
}
},
"ansible_included_var_files": [
"/home/rothakur/network/ospf/host_vars/rtr1/ospfv3.yaml"
],
"changed": false
}
TASK [network.base.resource_manager : Set default state] *************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/configure.yaml:13
skipping: [rtr1] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [network.base.resource_manager : Include tasks] *****************************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/configure.yaml:18
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/edit_resource.yaml for rtr1
TASK [network.base.resource_manager : Apply provided configuration] **************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/edit_resource.yaml:2
skipping: [rtr1] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [network.base.resource_manager : Apply configuration] ***********************************************************************************************************************************
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/configure.yaml:23
skipping: [rtr1] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
PLAY RECAP ***********************************************************************************************************************************************************************************
rtr1 : ok=25 changed=1 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment