With this playbook it shows the ports and the neighbors connected by cdp or
lldp (sw, routers, telephones, aps ..). I would like it to only show sw and
routers.
tasks:
- name: GATHER FACTS FOR IOS IN A TASK
ios_facts:
- name: VIEW ALL ANSIBLE FACT KEYS
debug:
var: ansible_facts.keys()
- name: View HOSTNAME
debug:
var: ansible_net_hostname
- name: View Neighbors
debug:
var: ansible_net_neighbors
El jueves, 3 de septiembre de 2020 a las 12:04:10 UTC+2, [email protected]
escribió:
> Playbooks, examples, etc will help in getting an answer with so little
> context
>
> On Thu, 3 Sep 2020 at 09:00, Jaime Jaca <[email protected]> wrote:
>
>> I would like to filter the neighbors to only show switches and routers
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>>
>> You received this message because you are subscribed to the Google Groups
>> "Ansible Project" group.
>>
>>
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>>
>>
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/41eb1bd4-7779-4694-bd6b-14f0047dc71bn%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/ansible-project/41eb1bd4-7779-4694-bd6b-14f0047dc71bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>> --
> Sent from a mobile device - please excuse the brevity, spelling and
> punctuation.
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/fc9fc0b6-3d0b-4598-bffc-257317a1c27cn%40googlegroups.com.