cloud_user@ed26757f4b1c:~$ ansible-playbook ~/network-automation/infra/nautobot/add_info.yaml -vv
ansible-playbook [core 2.12.10]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/cloud_user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = /home/cloud_user/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible-playbook
python version = 3.8.10 (default, Nov 22 2023, 10:22:35) [GCC 9.4.0]
jinja version = 2.10.1
libyaml = True
Using /etc/ansible/ansible.cfg as config file
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
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: add_info.yaml ***************************************************************************************************************
1 plays in /home/cloud_user/network-automation/infra/nautobot/add_info.yaml
PLAY [ADD INFO TO NAUTOBOT] ***********************************************************************************************************
META: ran handlers
TASK [ADD SITE] ***********************************************************************************************************************
task path: /home/cloud_user/network-automation/infra/nautobot/add_info.yaml:7
changed: [localhost] => {"changed": true, "msg": "site Connecticut created", "site": {"asn": null, "comments": "", "computed_fields": "", "contact_email": "", "contact_name": "", "contact_phone": "", "created": "2023-12-18", "custom_fields": {}, "description": "", "display": "Connecticut", "facility": "", "id": "0627a5df-5138-4c4e-b263-b203f4085956", "last_updated": "2023-12-18T22:02:02.227340Z", "latitude": null, "longitude": null, "name": "Connecticut", "notes_url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/sites/0627a5df-5138-4c4e-b263-b203f4085956/notes/", "physical_address": "", "region": null, "relationships": "", "shipping_address": "", "slug": "connecticut", "status": "active", "tags": [], "tenant": null, "time_zone": null, "url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/sites/0627a5df-5138-4c4e-b263-b203f4085956/"}}
TASK [ADD MANUFACTURER] ***************************************************************************************************************
task path: /home/cloud_user/network-automation/infra/nautobot/add_info.yaml:15
changed: [localhost] => {"changed": true, "manufacturer": {"computed_fields": "", "created": "2023-12-18", "custom_fields": {}, "description": "Arista", "display": "Arista", "id": "2c1dfb6d-4d46-4be0-aec0-c9cea0651d0c", "last_updated": "2023-12-18T22:02:03.618867Z", "name": "Arista", "notes_url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/manufacturers/2c1dfb6d-4d46-4be0-aec0-c9cea0651d0c/notes/", "relationships": "", "slug": "arista", "url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/manufacturers/2c1dfb6d-4d46-4be0-aec0-c9cea0651d0c/"}, "msg": "manufacturer Arista created"}
TASK [ADD LOCATION TYPE] **************************************************************************************************************
task path: /home/cloud_user/network-automation/infra/nautobot/add_info.yaml:23
changed: [localhost] => {"changed": true, "location_type": {"computed_fields": "", "content_types": [], "created": "2023-12-18", "custom_fields": {}, "description": "", "display": "Network Closets", "id": "d498e24c-e809-4972-a1d1-8cd0833ed7ff", "last_updated": "2023-12-18T22:02:04.677708Z", "name": "Network Closets", "nestable": false, "notes_url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/location-types/d498e24c-e809-4972-a1d1-8cd0833ed7ff/notes/", "parent": null, "relationships": "", "slug": "network-closets", "tree_depth": null, "url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/location-types/d498e24c-e809-4972-a1d1-8cd0833ed7ff/"}, "msg": "location_type Network Closets created"}
TASK [ADD DEVICE TYPE] ****************************************************************************************************************
task path: /home/cloud_user/network-automation/infra/nautobot/add_info.yaml:30
changed: [localhost] => {"changed": true, "device_type": {"comments": "", "computed_fields": "", "created": "2023-12-18", "custom_fields": {}, "display": "Arista ceos", "front_image": null, "id": "051d49d9-65df-4d5b-b126-5d8e5c50fb42", "is_full_depth": true, "last_updated": "2023-12-18T22:02:05.797213Z", "manufacturer": "2c1dfb6d-4d46-4be0-aec0-c9cea0651d0c", "model": "ceos", "notes_url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/device-types/051d49d9-65df-4d5b-b126-5d8e5c50fb42/notes/", "part_number": "", "rear_image": null, "relationships": "", "slug": "ceos", "subdevice_role": null, "tags": [], "u_height": 1, "url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/device-types/051d49d9-65df-4d5b-b126-5d8e5c50fb42/"}, "msg": "device_type ceos created"}
TASK [ADD PLATFORM] *******************************************************************************************************************
task path: /home/cloud_user/network-automation/infra/nautobot/add_info.yaml:38
changed: [localhost] => {"changed": true, "msg": "platform EOS created", "platform": {"computed_fields": "", "created": "2023-12-18", "custom_fields": {}, "description": "", "display": "EOS", "id": "f5445430-3024-474f-b660-48d8c05181d1", "last_updated": "2023-12-18T22:02:06.874726Z", "manufacturer": "2c1dfb6d-4d46-4be0-aec0-c9cea0651d0c", "name": "EOS", "napalm_args": null, "napalm_driver": "", "network_driver": "", "network_driver_mappings": "", "notes_url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/platforms/f5445430-3024-474f-b660-48d8c05181d1/notes/", "relationships": "", "slug": "eos", "url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/platforms/f5445430-3024-474f-b660-48d8c05181d1/"}}
TASK [ADD DEVICE ROLE] ****************************************************************************************************************
task path: /home/cloud_user/network-automation/infra/nautobot/add_info.yaml:46
changed: [localhost] => {"changed": true, "device_role": {"color": "008000", "computed_fields": "", "created": "2023-12-18", "custom_fields": {}, "description": "", "display": "Switch", "id": "ab8891b0-9dd4-4624-a203-df73009b7aec", "last_updated": "2023-12-18T22:02:07.903963Z", "name": "Switch", "notes_url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/device-roles/ab8891b0-9dd4-4624-a203-df73009b7aec/notes/", "relationships": "", "slug": "switch", "url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/device-roles/ab8891b0-9dd4-4624-a203-df73009b7aec/", "vm_role": true}, "msg": "device_role Switch created"}
TASK [ADD ARISTA DEVICES] *************************************************************************************************************
task path: /home/cloud_user/network-automation/infra/nautobot/add_info.yaml:54
changed: [localhost] => (item={'name': 'clab-Arista-2s-3l-spine1', 'site': 'Connecticut', 'device_role': 'Switch', 'device_type': 'ceos', 'platform': 'EOS'}) => {"ansible_loop_var": "item", "changed": true, "device": {"asset_tag": null, "cluster": null, "comments": "", "computed_fields": "", "config_context": {}, "created": "2023-12-18", "custom_fields": {}, "device_redundancy_group": null, "device_redundancy_group_priority": null, "device_role": "ab8891b0-9dd4-4624-a203-df73009b7aec", "device_type": "051d49d9-65df-4d5b-b126-5d8e5c50fb42", "display": "clab-Arista-2s-3l-spine1", "face": null, "id": "27fb7618-61dd-4101-ab3e-d2740d88d790", "last_updated": "2023-12-18T22:02:09.486185Z", "local_context_data": null, "local_context_schema": null, "location": null, "name": "clab-Arista-2s-3l-spine1", "notes_url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/devices/27fb7618-61dd-4101-ab3e-d2740d88d790/notes/", "parent_device": null, "platform": "f5445430-3024-474f-b660-48d8c05181d1", "position": null, "primary_ip": null, "primary_ip4": null, "primary_ip6": null, "rack": null, "relationships": "", "secrets_group": null, "serial": "", "site": "0627a5df-5138-4c4e-b263-b203f4085956", "status": "active", "tags": [], "tenant": null, "url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/devices/27fb7618-61dd-4101-ab3e-d2740d88d790/", "vc_position": null, "vc_priority": null, "virtual_chassis": null}, "item": {"device_role": "Switch", "device_type": "ceos", "name": "clab-Arista-2s-3l-spine1", "platform": "EOS", "site": "Connecticut"}, "msg": "device clab-Arista-2s-3l-spine1 created"}
changed: [localhost] => (item={'name': 'clab-Arista-2s-3l-spine2', 'site': 'Connecticut', 'device_role': 'Switch', 'device_type': 'ceos', 'platform': 'EOS'}) => {"ansible_loop_var": "item", "changed": true, "device": {"asset_tag": null, "cluster": null, "comments": "", "computed_fields": "", "config_context": {}, "created": "2023-12-18", "custom_fields": {}, "device_redundancy_group": null, "device_redundancy_group_priority": null, "device_role": "ab8891b0-9dd4-4624-a203-df73009b7aec", "device_type": "051d49d9-65df-4d5b-b126-5d8e5c50fb42", "display": "clab-Arista-2s-3l-spine2", "face": null, "id": "cc12f9c3-4820-425c-8122-a1d25a5c29a5", "last_updated": "2023-12-18T22:02:10.795711Z", "local_context_data": null, "local_context_schema": null, "location": null, "name": "clab-Arista-2s-3l-spine2", "notes_url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/devices/cc12f9c3-4820-425c-8122-a1d25a5c29a5/notes/", "parent_device": null, "platform": "f5445430-3024-474f-b660-48d8c05181d1", "position": null, "primary_ip": null, "primary_ip4": null, "primary_ip6": null, "rack": null, "relationships": "", "secrets_group": null, "serial": "", "site": "0627a5df-5138-4c4e-b263-b203f4085956", "status": "active", "tags": [], "tenant": null, "url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/devices/cc12f9c3-4820-425c-8122-a1d25a5c29a5/", "vc_position": null, "vc_priority": null, "virtual_chassis": null}, "item": {"device_role": "Switch", "device_type": "ceos", "name": "clab-Arista-2s-3l-spine2", "platform": "EOS", "site": "Connecticut"}, "msg": "device clab-Arista-2s-3l-spine2 created"}
changed: [localhost] => (item={'name': 'clab-Arista-2s-3l-leaf1', 'site': 'Connecticut', 'device_role': 'Switch', 'device_type': 'ceos', 'platform': 'EOS'}) => {"ansible_loop_var": "item", "changed": true, "device": {"asset_tag": null, "cluster": null, "comments": "", "computed_fields": "", "config_context": {}, "created": "2023-12-18", "custom_fields": {}, "device_redundancy_group": null, "device_redundancy_group_priority": null, "device_role": "ab8891b0-9dd4-4624-a203-df73009b7aec", "device_type": "051d49d9-65df-4d5b-b126-5d8e5c50fb42", "display": "clab-Arista-2s-3l-leaf1", "face": null, "id": "79a848d1-794c-4666-9a45-85c6589305c9", "last_updated": "2023-12-18T22:02:12.203307Z", "local_context_data": null, "local_context_schema": null, "location": null, "name": "clab-Arista-2s-3l-leaf1", "notes_url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/devices/79a848d1-794c-4666-9a45-85c6589305c9/notes/", "parent_device": null, "platform": "f5445430-3024-474f-b660-48d8c05181d1", "position": null, "primary_ip": null, "primary_ip4": null, "primary_ip6": null, "rack": null, "relationships": "", "secrets_group": null, "serial": "", "site": "0627a5df-5138-4c4e-b263-b203f4085956", "status": "active", "tags": [], "tenant": null, "url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/devices/79a848d1-794c-4666-9a45-85c6589305c9/", "vc_position": null, "vc_priority": null, "virtual_chassis": null}, "item": {"device_role": "Switch", "device_type": "ceos", "name": "clab-Arista-2s-3l-leaf1", "platform": "EOS", "site": "Connecticut"}, "msg": "device clab-Arista-2s-3l-leaf1 created"}
changed: [localhost] => (item={'name': 'clab-Arista-2s-3l-leaf2', 'site': 'Connecticut', 'device_role': 'Switch', 'device_type': 'ceos', 'platform': 'EOS'}) => {"ansible_loop_var": "item", "changed": true, "device": {"asset_tag": null, "cluster": null, "comments": "", "computed_fields": "", "config_context": {}, "created": "2023-12-18", "custom_fields": {}, "device_redundancy_group": null, "device_redundancy_group_priority": null, "device_role": "ab8891b0-9dd4-4624-a203-df73009b7aec", "device_type": "051d49d9-65df-4d5b-b126-5d8e5c50fb42", "display": "clab-Arista-2s-3l-leaf2", "face": null, "id": "19eba143-ead9-403c-b86d-060b37aafe58", "last_updated": "2023-12-18T22:02:13.805603Z", "local_context_data": null, "local_context_schema": null, "location": null, "name": "clab-Arista-2s-3l-leaf2", "notes_url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/devices/19eba143-ead9-403c-b86d-060b37aafe58/notes/", "parent_device": null, "platform": "f5445430-3024-474f-b660-48d8c05181d1", "position": null, "primary_ip": null, "primary_ip4": null, "primary_ip6": null, "rack": null, "relationships": "", "secrets_group": null, "serial": "", "site": "0627a5df-5138-4c4e-b263-b203f4085956", "status": "active", "tags": [], "tenant": null, "url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/devices/19eba143-ead9-403c-b86d-060b37aafe58/", "vc_position": null, "vc_priority": null, "virtual_chassis": null}, "item": {"device_role": "Switch", "device_type": "ceos", "name": "clab-Arista-2s-3l-leaf2", "platform": "EOS", "site": "Connecticut"}, "msg": "device clab-Arista-2s-3l-leaf2 created"}
changed: [localhost] => (item={'name': 'clab-Arista-2s-3l-leaf3', 'site': 'Connecticut', 'device_role': 'Switch', 'device_type': 'ceos', 'platform': 'EOS'}) => {"ansible_loop_var": "item", "changed": true, "device": {"asset_tag": null, "cluster": null, "comments": "", "computed_fields": "", "config_context": {}, "created": "2023-12-18", "custom_fields": {}, "device_redundancy_group": null, "device_redundancy_group_priority": null, "device_role": "ab8891b0-9dd4-4624-a203-df73009b7aec", "device_type": "051d49d9-65df-4d5b-b126-5d8e5c50fb42", "display": "clab-Arista-2s-3l-leaf3", "face": null, "id": "bf1b5cf8-f51d-4d4a-9629-036cc2056bc2", "last_updated": "2023-12-18T22:02:15.031124Z", "local_context_data": null, "local_context_schema": null, "location": null, "name": "clab-Arista-2s-3l-leaf3", "notes_url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/devices/bf1b5cf8-f51d-4d4a-9629-036cc2056bc2/notes/", "parent_device": null, "platform": "f5445430-3024-474f-b660-48d8c05181d1", "position": null, "primary_ip": null, "primary_ip4": null, "primary_ip6": null, "rack": null, "relationships": "", "secrets_group": null, "serial": "", "site": "0627a5df-5138-4c4e-b263-b203f4085956", "status": "active", "tags": [], "tenant": null, "url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/devices/bf1b5cf8-f51d-4d4a-9629-036cc2056bc2/", "vc_position": null, "vc_priority": null, "virtual_chassis": null}, "item": {"device_role": "Switch", "device_type": "ceos", "name": "clab-Arista-2s-3l-leaf3", "platform": "EOS", "site": "Connecticut"}, "msg": "device clab-Arista-2s-3l-leaf3 created"}
TASK [ADD INTERFACE TO A DEVICE] ******************************************************************************************************
task path: /home/cloud_user/network-automation/infra/nautobot/add_info.yaml:66
changed: [localhost] => {"changed": true, "interface": {"bridge": null, "cable": null, "cable_peer": null, "cable_peer_type": null, "computed_fields": "", "connected_endpoint": null, "connected_endpoint_reachable": null, "connected_endpoint_type": null, "count_ipaddresses": 0, "created": "2023-12-18", "custom_fields": {}, "description": "", "device": "bf1b5cf8-f51d-4d4a-9629-036cc2056bc2", "display": "vlan13", "enabled": true, "id": "d604fbf1-197b-4a0e-b8db-36271f825006", "label": "", "lag": null, "last_updated": "2023-12-18T22:02:16.631363Z", "mac_address": null, "mgmt_only": false, "mode": null, "mtu": null, "name": "vlan13", "notes_url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/interfaces/d604fbf1-197b-4a0e-b8db-36271f825006/notes/", "parent_interface": null, "relationships": "", "tagged_vlans": [], "tags": [], "type": "virtual", "untagged_vlan": null, "url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/interfaces/d604fbf1-197b-4a0e-b8db-36271f825006/"}, "msg": "interface vlan13 created"}
TASK [ADD INTERFACE TO A DEVICE] ******************************************************************************************************
task path: /home/cloud_user/network-automation/infra/nautobot/add_info.yaml:76
changed: [localhost] => {"changed": true, "interface": {"bridge": null, "cable": null, "cable_peer": null, "cable_peer_type": null, "computed_fields": "", "connected_endpoint": null, "connected_endpoint_reachable": null, "connected_endpoint_type": null, "count_ipaddresses": 0, "created": "2023-12-18", "custom_fields": {}, "description": "", "device": "bf1b5cf8-f51d-4d4a-9629-036cc2056bc2", "display": "vlan14", "enabled": true, "id": "e64ff347-f569-43c0-af26-1b196654381e", "label": "", "lag": null, "last_updated": "2023-12-18T22:02:18.211204Z", "mac_address": null, "mgmt_only": false, "mode": null, "mtu": null, "name": "vlan14", "notes_url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/interfaces/e64ff347-f569-43c0-af26-1b196654381e/notes/", "parent_interface": null, "relationships": "", "tagged_vlans": [], "tags": [], "type": "virtual", "untagged_vlan": null, "url": "http://ed26757f4b2c.mylabserver.com:8000/api/dcim/interfaces/e64ff347-f569-43c0-af26-1b196654381e/"}, "msg": "interface vlan14 created"}
TASK [ADD IP ADDRESS] *****************************************************************************************************************
task path: /home/cloud_user/network-automation/infra/nautobot/add_info.yaml:86
changed: [localhost] => {"changed": true, "ip_address": {"address": "192.168.13.1/24", "assigned_object": null, "assigned_object_id": null, "assigned_object_type": null, "computed_fields": "", "created": "2023-12-18", "custom_fields": {}, "description": "", "display": "192.168.13.1/24", "dns_name": "", "family": 4, "id": "1e5b0fd5-f6dd-40c9-98b8-0faae3753e6f", "last_updated": "2023-12-18T22:02:19.370808Z", "nat_inside": null, "nat_outside": null, "notes_url": "http://ed26757f4b2c.mylabserver.com:8000/api/ipam/ip-addresses/1e5b0fd5-f6dd-40c9-98b8-0faae3753e6f/notes/", "relationships": "", "role": null, "status": "active", "tags": [], "tenant": null, "url": "http://ed26757f4b2c.mylabserver.com:8000/api/ipam/ip-addresses/1e5b0fd5-f6dd-40c9-98b8-0faae3753e6f/", "vrf": null}, "msg": "ip_address 192.168.13.1/24 created"}
TASK [ADD IP ADDRESS] *****************************************************************************************************************
task path: /home/cloud_user/network-automation/infra/nautobot/add_info.yaml:94
changed: [localhost] => {"changed": true, "ip_address": {"address": "192.168.14.1/24", "assigned_object": null, "assigned_object_id": null, "assigned_object_type": null, "computed_fields": "", "created": "2023-12-18", "custom_fields": {}, "description": "", "display": "192.168.14.1/24", "dns_name": "", "family": 4, "id": "45765efe-77a0-464f-a14a-b3f514208f5a", "last_updated": "2023-12-18T22:02:20.509881Z", "nat_inside": null, "nat_outside": null, "notes_url": "http://ed26757f4b2c.mylabserver.com:8000/api/ipam/ip-addresses/45765efe-77a0-464f-a14a-b3f514208f5a/notes/", "relationships": "", "role": null, "status": "active", "tags": [], "tenant": null, "url": "http://ed26757f4b2c.mylabserver.com:8000/api/ipam/ip-addresses/45765efe-77a0-464f-a14a-b3f514208f5a/", "vrf": null}, "msg": "ip_address 192.168.14.1/24 created"}
META: ran handlers
META: ran handlers
PLAY RECAP ****************************************************************************************************************************
localhost : ok=11 changed=11 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0