Created
July 4, 2023 10:37
-
-
Save rohitthakur2590/eb37d2f642e539c339327883dd9c7710 to your computer and use it in GitHub Desktop.
network_ospf_persist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[rothakur@localhost ospf]$ ansible-playbook -vvv persist.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: persist.yaml *********************************************************************************************************************************************************************** | |
1 plays in persist.yaml | |
PLAY [rtr1] ********************************************************************************************************************************************************************************** | |
TASK [Network OSPF Manager] ****************************************************************************************************************************************************************** | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/persist.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/persist.yaml for rtr1 => (item={'name': 'persist'}) | |
TASK [Invoke gather function] **************************************************************************************************************************************************************** | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/roles/run/tasks/includes/persist.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/./persist.yaml for rtr1 => (item=/home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/persist.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/persist.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 default resources] ********************************************************************************************************************************* | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/persist.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/persist.yaml:12 | |
ok: [rtr1] => { | |
"ansible_facts": { | |
"resource_manager_network_resources": { | |
"actionable": [ | |
"ospf_interfaces", | |
"ospfv2", | |
"ospfv3" | |
], | |
"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/persist.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 : Include retrieve tasks] ******************************************************************************************************************************** | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/persist.yaml:19 | |
skipping: [rtr1] => { | |
"changed": false, | |
"skip_reason": "Conditional result was False" | |
} | |
TASK [network.base.resource_manager : Include build tasks] *********************************************************************************************************************************** | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/persist.yaml:23 | |
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/build.yaml for rtr1 => (item=ospf_interfaces) | |
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/build.yaml for rtr1 => (item=ospfv2) | |
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/build.yaml for rtr1 => (item=ospfv3) | |
TASK [network.base.resource_manager : Run the platform facts module] ************************************************************************************************************************* | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/build.yaml:2 | |
ok: [rtr1] => { | |
"ansible_connection": "ansible.netcommon.network_cli", | |
"ansible_network_os": "cisco.ios.ios", | |
"changed": false, | |
"gathered": [ | |
{ | |
"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" | |
} | |
], | |
"invocation": { | |
"module_args": { | |
"config": null, | |
"running_config": null, | |
"state": "gathered" | |
} | |
}, | |
"resource_module_name": "cisco.ios.ios_ospf_interfaces" | |
} | |
TASK [network.base.resource_manager : Resource Facts] **************************************************************************************************************************************** | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/build.yaml:9 | |
skipping: [rtr1] => {} | |
TASK [network.base.resource_manager : Include file write task] ******************************************************************************************************************************* | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/build.yaml:15 | |
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/build.yaml:23 | |
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/write_to_file.yaml for rtr1 | |
TASK [network.base.resource_manager : Create inventory directory] **************************************************************************************************************************** | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/write_to_file.yaml:2 | |
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: rothakur | |
<localhost> EXEC /bin/sh -c 'echo ~rothakur && sleep 0' | |
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/rothakur/.ansible/tmp `"&& mkdir "` echo /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.496272-542281-27744905338320 `" && echo ansible-tmp-1688459217.496272-542281-27744905338320="` echo /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.496272-542281-27744905338320 `" ) && sleep 0' | |
Using module file /usr/local/lib/python3.11/site-packages/ansible/modules/file.py | |
<localhost> PUT /home/rothakur/.ansible/tmp/ansible-local-542113_hgmbual/tmphn307429 TO /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.496272-542281-27744905338320/AnsiballZ_file.py | |
<localhost> EXEC /bin/sh -c 'chmod u+x /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.496272-542281-27744905338320/ /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.496272-542281-27744905338320/AnsiballZ_file.py && sleep 0' | |
<localhost> EXEC /bin/sh -c '/usr/bin/python3 /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.496272-542281-27744905338320/AnsiballZ_file.py && sleep 0' | |
<localhost> EXEC /bin/sh -c 'rm -f -r /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.496272-542281-27744905338320/ > /dev/null 2>&1 && sleep 0' | |
changed: [rtr1 -> localhost] => { | |
"changed": true, | |
"diff": { | |
"after": { | |
"mode": "0777", | |
"path": "/home/rothakur/network/ospf//host_vars/rtr1", | |
"state": "directory" | |
}, | |
"before": { | |
"mode": "0755", | |
"path": "/home/rothakur/network/ospf//host_vars/rtr1", | |
"state": "absent" | |
} | |
}, | |
"gid": 1000, | |
"group": "rothakur", | |
"invocation": { | |
"module_args": { | |
"_diff_peek": null, | |
"_original_basename": null, | |
"access_time": null, | |
"access_time_format": "%Y%m%d%H%M.%S", | |
"attributes": null, | |
"follow": true, | |
"force": false, | |
"group": null, | |
"mode": "0777", | |
"modification_time": null, | |
"modification_time_format": "%Y%m%d%H%M.%S", | |
"owner": null, | |
"path": "/home/rothakur/network/ospf//host_vars/rtr1", | |
"recurse": false, | |
"selevel": null, | |
"serole": null, | |
"setype": null, | |
"seuser": null, | |
"src": null, | |
"state": "directory", | |
"unsafe_writes": false | |
} | |
}, | |
"mode": "0777", | |
"owner": "rothakur", | |
"path": "/home/rothakur/network/ospf//host_vars/rtr1", | |
"secontext": "unconfined_u:object_r:user_home_t:s0", | |
"size": 0, | |
"state": "directory", | |
"uid": 1000 | |
} | |
TASK [network.base.resource_manager : Write each resource to a file] ************************************************************************************************************************* | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/write_to_file.yaml:9 | |
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: rothakur | |
<localhost> EXEC /bin/sh -c 'echo ~rothakur && sleep 0' | |
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/rothakur/.ansible/tmp `"&& mkdir "` echo /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078 `" && echo ansible-tmp-1688459217.7120612-542297-220121326012078="` echo /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078 `" ) && sleep 0' | |
<localhost> EXEC /bin/sh -c 'echo ~rothakur && sleep 0' | |
Using module file /usr/local/lib/python3.11/site-packages/ansible/modules/stat.py | |
<localhost> PUT /home/rothakur/.ansible/tmp/ansible-local-542113_hgmbual/tmphuuujggt TO /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078/AnsiballZ_stat.py | |
<localhost> EXEC /bin/sh -c 'chmod u+x /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078/ /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078/AnsiballZ_stat.py && sleep 0' | |
<localhost> EXEC /bin/sh -c '/usr/bin/python3 /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078/AnsiballZ_stat.py && sleep 0' | |
<localhost> PUT /home/rothakur/.ansible/tmp/ansible-local-542113_hgmbual/tmp81g69yfx TO /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078/source | |
<localhost> EXEC /bin/sh -c 'chmod u+x /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078/ /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078/source && sleep 0' | |
Using module file /usr/local/lib/python3.11/site-packages/ansible/modules/copy.py | |
<localhost> PUT /home/rothakur/.ansible/tmp/ansible-local-542113_hgmbual/tmpjy52fjgp TO /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078/AnsiballZ_copy.py | |
<localhost> EXEC /bin/sh -c 'chmod u+x /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078/ /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078/AnsiballZ_copy.py && sleep 0' | |
<localhost> EXEC /bin/sh -c '/usr/bin/python3 /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078/AnsiballZ_copy.py && sleep 0' | |
<localhost> EXEC /bin/sh -c 'rm -f -r /home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078/ > /dev/null 2>&1 && sleep 0' | |
changed: [rtr1 -> localhost] => { | |
"changed": true, | |
"checksum": "2043967b6eb7fe132c494edb69a350db61a1848f", | |
"dest": "/home/rothakur/network/ospf//host_vars/rtr1/ospf_interfaces.yaml", | |
"diff": [], | |
"gid": 1000, | |
"group": "rothakur", | |
"invocation": { | |
"module_args": { | |
"_original_basename": "tmp81g69yfx", | |
"attributes": null, | |
"backup": false, | |
"checksum": "2043967b6eb7fe132c494edb69a350db61a1848f", | |
"content": null, | |
"dest": "/home/rothakur/network/ospf//host_vars/rtr1/ospf_interfaces.yaml", | |
"directory_mode": null, | |
"follow": false, | |
"force": true, | |
"group": null, | |
"local_follow": null, | |
"mode": "0777", | |
"owner": null, | |
"remote_src": null, | |
"selevel": null, | |
"serole": null, | |
"setype": null, | |
"seuser": null, | |
"src": "/home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078/source", | |
"unsafe_writes": false, | |
"validate": null | |
} | |
}, | |
"md5sum": "5a7611baec989b1357498d360b1151db", | |
"mode": "0777", | |
"owner": "rothakur", | |
"secontext": "unconfined_u:object_r:user_home_t:s0", | |
"size": 717, | |
"src": "/home/rothakur/.ansible/tmp/ansible-tmp-1688459217.7120612-542297-220121326012078/source", | |
"state": "file", | |
"uid": 1000 | |
} | |
TASK [network.base.resource_manager : Run the platform facts module] ************************************************************************************************************************* | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/build.yaml:2 | |
ok: [rtr1] => { | |
"ansible_connection": "ansible.netcommon.network_cli", | |
"ansible_network_os": "cisco.ios.ios", | |
"changed": false, | |
"gathered": { | |
"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 | |
} | |
] | |
}, | |
"invocation": { | |
"module_args": { | |
"config": null, | |
"running_config": null, | |
"state": "gathered" | |
} | |
}, | |
"resource_module_name": "cisco.ios.ios_ospfv2" | |
} | |
TASK [network.base.resource_manager : Resource Facts] **************************************************************************************************************************************** | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/build.yaml:9 | |
skipping: [rtr1] => {} | |
TASK [network.base.resource_manager : Include file write task] ******************************************************************************************************************************* | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/build.yaml:15 | |
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/build.yaml:23 | |
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/write_to_file.yaml for rtr1 | |
TASK [network.base.resource_manager : Create inventory directory] **************************************************************************************************************************** | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/write_to_file.yaml:2 | |
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: rothakur | |
<localhost> EXEC /bin/sh -c 'echo ~rothakur && sleep 0' | |
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/rothakur/.ansible/tmp `"&& mkdir "` echo /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.6968603-542398-136456383899482 `" && echo ansible-tmp-1688459221.6968603-542398-136456383899482="` echo /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.6968603-542398-136456383899482 `" ) && sleep 0' | |
Using module file /usr/local/lib/python3.11/site-packages/ansible/modules/file.py | |
<localhost> PUT /home/rothakur/.ansible/tmp/ansible-local-542113_hgmbual/tmpwwu1wjpe TO /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.6968603-542398-136456383899482/AnsiballZ_file.py | |
<localhost> EXEC /bin/sh -c 'chmod u+x /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.6968603-542398-136456383899482/ /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.6968603-542398-136456383899482/AnsiballZ_file.py && sleep 0' | |
<localhost> EXEC /bin/sh -c '/usr/bin/python3 /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.6968603-542398-136456383899482/AnsiballZ_file.py && sleep 0' | |
<localhost> EXEC /bin/sh -c 'rm -f -r /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.6968603-542398-136456383899482/ > /dev/null 2>&1 && sleep 0' | |
ok: [rtr1 -> localhost] => { | |
"changed": false, | |
"diff": { | |
"after": { | |
"path": "/home/rothakur/network/ospf//host_vars/rtr1" | |
}, | |
"before": { | |
"path": "/home/rothakur/network/ospf//host_vars/rtr1" | |
} | |
}, | |
"gid": 1000, | |
"group": "rothakur", | |
"invocation": { | |
"module_args": { | |
"_diff_peek": null, | |
"_original_basename": null, | |
"access_time": null, | |
"access_time_format": "%Y%m%d%H%M.%S", | |
"attributes": null, | |
"follow": true, | |
"force": false, | |
"group": null, | |
"mode": "0777", | |
"modification_time": null, | |
"modification_time_format": "%Y%m%d%H%M.%S", | |
"owner": null, | |
"path": "/home/rothakur/network/ospf//host_vars/rtr1", | |
"recurse": false, | |
"selevel": null, | |
"serole": null, | |
"setype": null, | |
"seuser": null, | |
"src": null, | |
"state": "directory", | |
"unsafe_writes": false | |
} | |
}, | |
"mode": "0777", | |
"owner": "rothakur", | |
"path": "/home/rothakur/network/ospf//host_vars/rtr1", | |
"secontext": "unconfined_u:object_r:user_home_t:s0", | |
"size": 40, | |
"state": "directory", | |
"uid": 1000 | |
} | |
TASK [network.base.resource_manager : Write each resource to a file] ************************************************************************************************************************* | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/write_to_file.yaml:9 | |
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: rothakur | |
<localhost> EXEC /bin/sh -c 'echo ~rothakur && sleep 0' | |
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/rothakur/.ansible/tmp `"&& mkdir "` echo /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575 `" && echo ansible-tmp-1688459221.8355553-542415-181465362658575="` echo /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575 `" ) && sleep 0' | |
<localhost> EXEC /bin/sh -c 'echo ~rothakur && sleep 0' | |
Using module file /usr/local/lib/python3.11/site-packages/ansible/modules/stat.py | |
<localhost> PUT /home/rothakur/.ansible/tmp/ansible-local-542113_hgmbual/tmpvlvslznq TO /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575/AnsiballZ_stat.py | |
<localhost> EXEC /bin/sh -c 'chmod u+x /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575/ /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575/AnsiballZ_stat.py && sleep 0' | |
<localhost> EXEC /bin/sh -c '/usr/bin/python3 /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575/AnsiballZ_stat.py && sleep 0' | |
<localhost> PUT /home/rothakur/.ansible/tmp/ansible-local-542113_hgmbual/tmp_rhk3558 TO /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575/source | |
<localhost> EXEC /bin/sh -c 'chmod u+x /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575/ /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575/source && sleep 0' | |
Using module file /usr/local/lib/python3.11/site-packages/ansible/modules/copy.py | |
<localhost> PUT /home/rothakur/.ansible/tmp/ansible-local-542113_hgmbual/tmp2kcqnzph TO /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575/AnsiballZ_copy.py | |
<localhost> EXEC /bin/sh -c 'chmod u+x /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575/ /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575/AnsiballZ_copy.py && sleep 0' | |
<localhost> EXEC /bin/sh -c '/usr/bin/python3 /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575/AnsiballZ_copy.py && sleep 0' | |
<localhost> EXEC /bin/sh -c 'rm -f -r /home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575/ > /dev/null 2>&1 && sleep 0' | |
changed: [rtr1 -> localhost] => { | |
"changed": true, | |
"checksum": "1d2db5e3d0869b8b607d669081230237ea8874c1", | |
"dest": "/home/rothakur/network/ospf//host_vars/rtr1/ospfv2.yaml", | |
"diff": [], | |
"gid": 1000, | |
"group": "rothakur", | |
"invocation": { | |
"module_args": { | |
"_original_basename": "tmp_rhk3558", | |
"attributes": null, | |
"backup": false, | |
"checksum": "1d2db5e3d0869b8b607d669081230237ea8874c1", | |
"content": null, | |
"dest": "/home/rothakur/network/ospf//host_vars/rtr1/ospfv2.yaml", | |
"directory_mode": null, | |
"follow": false, | |
"force": true, | |
"group": null, | |
"local_follow": null, | |
"mode": "0777", | |
"owner": null, | |
"remote_src": null, | |
"selevel": null, | |
"serole": null, | |
"setype": null, | |
"seuser": null, | |
"src": "/home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575/source", | |
"unsafe_writes": false, | |
"validate": null | |
} | |
}, | |
"md5sum": "e4ff2cf8c658e0c0426b129591c19623", | |
"mode": "0777", | |
"owner": "rothakur", | |
"secontext": "unconfined_u:object_r:user_home_t:s0", | |
"size": 291, | |
"src": "/home/rothakur/.ansible/tmp/ansible-tmp-1688459221.8355553-542415-181465362658575/source", | |
"state": "file", | |
"uid": 1000 | |
} | |
TASK [network.base.resource_manager : Run the platform facts module] ************************************************************************************************************************* | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/build.yaml:2 | |
ok: [rtr1] => { | |
"ansible_connection": "ansible.netcommon.network_cli", | |
"ansible_network_os": "cisco.ios.ios", | |
"changed": false, | |
"gathered": {}, | |
"invocation": { | |
"module_args": { | |
"config": null, | |
"running_config": null, | |
"state": "gathered" | |
} | |
}, | |
"resource_module_name": "cisco.ios.ios_ospfv3" | |
} | |
TASK [network.base.resource_manager : Resource Facts] **************************************************************************************************************************************** | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/build.yaml:9 | |
skipping: [rtr1] => {} | |
TASK [network.base.resource_manager : Include file write task] ******************************************************************************************************************************* | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/build.yaml:15 | |
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/build.yaml:23 | |
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/write_to_file.yaml for rtr1 | |
TASK [network.base.resource_manager : Create inventory directory] **************************************************************************************************************************** | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/write_to_file.yaml:2 | |
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: rothakur | |
<localhost> EXEC /bin/sh -c 'echo ~rothakur && sleep 0' | |
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/rothakur/.ansible/tmp `"&& mkdir "` echo /home/rothakur/.ansible/tmp/ansible-tmp-1688459224.8864057-542449-273957379142083 `" && echo ansible-tmp-1688459224.8864057-542449-273957379142083="` echo /home/rothakur/.ansible/tmp/ansible-tmp-1688459224.8864057-542449-273957379142083 `" ) && sleep 0' | |
Using module file /usr/local/lib/python3.11/site-packages/ansible/modules/file.py | |
<localhost> PUT /home/rothakur/.ansible/tmp/ansible-local-542113_hgmbual/tmpcsjm7juj TO /home/rothakur/.ansible/tmp/ansible-tmp-1688459224.8864057-542449-273957379142083/AnsiballZ_file.py | |
<localhost> EXEC /bin/sh -c 'chmod u+x /home/rothakur/.ansible/tmp/ansible-tmp-1688459224.8864057-542449-273957379142083/ /home/rothakur/.ansible/tmp/ansible-tmp-1688459224.8864057-542449-273957379142083/AnsiballZ_file.py && sleep 0' | |
<localhost> EXEC /bin/sh -c '/usr/bin/python3 /home/rothakur/.ansible/tmp/ansible-tmp-1688459224.8864057-542449-273957379142083/AnsiballZ_file.py && sleep 0' | |
<localhost> EXEC /bin/sh -c 'rm -f -r /home/rothakur/.ansible/tmp/ansible-tmp-1688459224.8864057-542449-273957379142083/ > /dev/null 2>&1 && sleep 0' | |
ok: [rtr1 -> localhost] => { | |
"changed": false, | |
"diff": { | |
"after": { | |
"path": "/home/rothakur/network/ospf//host_vars/rtr1" | |
}, | |
"before": { | |
"path": "/home/rothakur/network/ospf//host_vars/rtr1" | |
} | |
}, | |
"gid": 1000, | |
"group": "rothakur", | |
"invocation": { | |
"module_args": { | |
"_diff_peek": null, | |
"_original_basename": null, | |
"access_time": null, | |
"access_time_format": "%Y%m%d%H%M.%S", | |
"attributes": null, | |
"follow": true, | |
"force": false, | |
"group": null, | |
"mode": "0777", | |
"modification_time": null, | |
"modification_time_format": "%Y%m%d%H%M.%S", | |
"owner": null, | |
"path": "/home/rothakur/network/ospf//host_vars/rtr1", | |
"recurse": false, | |
"selevel": null, | |
"serole": null, | |
"setype": null, | |
"seuser": null, | |
"src": null, | |
"state": "directory", | |
"unsafe_writes": false | |
} | |
}, | |
"mode": "0777", | |
"owner": "rothakur", | |
"path": "/home/rothakur/network/ospf//host_vars/rtr1", | |
"secontext": "unconfined_u:object_r:user_home_t:s0", | |
"size": 62, | |
"state": "directory", | |
"uid": 1000 | |
} | |
TASK [network.base.resource_manager : Write each resource to a file] ************************************************************************************************************************* | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/write_to_file.yaml:9 | |
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: rothakur | |
<localhost> EXEC /bin/sh -c 'echo ~rothakur && sleep 0' | |
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/rothakur/.ansible/tmp `"&& mkdir "` echo /home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380 `" && echo ansible-tmp-1688459225.0247602-542465-7800560652380="` echo /home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380 `" ) && sleep 0' | |
<localhost> EXEC /bin/sh -c 'echo ~rothakur && sleep 0' | |
Using module file /usr/local/lib/python3.11/site-packages/ansible/modules/stat.py | |
<localhost> PUT /home/rothakur/.ansible/tmp/ansible-local-542113_hgmbual/tmppw79jmba TO /home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380/AnsiballZ_stat.py | |
<localhost> EXEC /bin/sh -c 'chmod u+x /home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380/ /home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380/AnsiballZ_stat.py && sleep 0' | |
<localhost> EXEC /bin/sh -c '/usr/bin/python3 /home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380/AnsiballZ_stat.py && sleep 0' | |
<localhost> PUT /home/rothakur/.ansible/tmp/ansible-local-542113_hgmbual/tmphozk4_jj TO /home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380/source | |
<localhost> EXEC /bin/sh -c 'chmod u+x /home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380/ /home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380/source && sleep 0' | |
Using module file /usr/local/lib/python3.11/site-packages/ansible/modules/copy.py | |
<localhost> PUT /home/rothakur/.ansible/tmp/ansible-local-542113_hgmbual/tmpbxf8_kmp TO /home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380/AnsiballZ_copy.py | |
<localhost> EXEC /bin/sh -c 'chmod u+x /home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380/ /home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380/AnsiballZ_copy.py && sleep 0' | |
<localhost> EXEC /bin/sh -c '/usr/bin/python3 /home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380/AnsiballZ_copy.py && sleep 0' | |
<localhost> EXEC /bin/sh -c 'rm -f -r /home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380/ > /dev/null 2>&1 && sleep 0' | |
changed: [rtr1 -> localhost] => { | |
"changed": true, | |
"checksum": "82a3f78e6d2a8235dbd9b18a836d1c2164c64925", | |
"dest": "/home/rothakur/network/ospf//host_vars/rtr1/ospfv3.yaml", | |
"diff": [], | |
"gid": 1000, | |
"group": "rothakur", | |
"invocation": { | |
"module_args": { | |
"_original_basename": "tmphozk4_jj", | |
"attributes": null, | |
"backup": false, | |
"checksum": "82a3f78e6d2a8235dbd9b18a836d1c2164c64925", | |
"content": null, | |
"dest": "/home/rothakur/network/ospf//host_vars/rtr1/ospfv3.yaml", | |
"directory_mode": null, | |
"follow": false, | |
"force": true, | |
"group": null, | |
"local_follow": null, | |
"mode": "0777", | |
"owner": null, | |
"remote_src": null, | |
"selevel": null, | |
"serole": null, | |
"setype": null, | |
"seuser": null, | |
"src": "/home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380/source", | |
"unsafe_writes": false, | |
"validate": null | |
} | |
}, | |
"md5sum": "fb4d284af1a4365cecee89190e881c4d", | |
"mode": "0777", | |
"owner": "rothakur", | |
"secontext": "unconfined_u:object_r:user_home_t:s0", | |
"size": 11, | |
"src": "/home/rothakur/.ansible/tmp/ansible-tmp-1688459225.0247602-542465-7800560652380/source", | |
"state": "file", | |
"uid": 1000 | |
} | |
TASK [network.base.resource_manager : Include build tasks] *********************************************************************************************************************************** | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/persist.yaml:29 | |
skipping: [rtr1] => { | |
"changed": false, | |
"skip_reason": "Conditional result was False" | |
} | |
PLAY RECAP *********************************************************************************************************************************************************************************** | |
rtr1 : ok=23 changed=4 unreachable=0 failed=0 skipped=10 rescued=0 ignored=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment