@shicks Thank you for the details.
How about below tasks:
- name: CDP Neighbor information
hosts: trial
tasks:
- name: Gather Facts
cisco.ios.ios_facts:
gather_subset:
- all
gather_network_resources:
- interfaces
- name: Configure interfaces
cisco.ios.ios_interfaces:
config:
- name: "{{ item.key }}"
description: "to {{ item.value[0].host }} {{ item.value[0].ip }}" # customizable
loop: "{{ ansible_net_neighbors | dict2items }}"