Ansible Playbook for Gathering and Verifying Access Lists on Cisco Switches

16 views
Skip to first unread message

Alex

unread,
Jun 11, 2023, 4:59:04 PM6/11/23
to Ansible Project
Hi,
I need assistance with writing an Ansible playbook. The playbook should be able to gather the access lists available on a Cisco switches and then display which access list is applied to each interface or line vty. I have already managed to gather the access lists and save them into a CSV file. However,  I am unsure about how to proceed with the second step, which involves checking if an access list is applied to a specific interface or line vty. Could you please assist me in resolving this issue?

Thank you for your assistance.

Sagar Paul

unread,
Jun 12, 2023, 1:22:06 AM6/12/23
to ansible...@googlegroups.com
Hey Alex, 
You may check the acl_interfaces and use the gathered state to gather facts related to the acls applied on any interface.

Regards,

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/24e225e7-492f-4780-9a1e-3b9b915c288cn%40googlegroups.com.


--
Sagar Paul

Software Engineer, Ansible


Reply all
Reply to author
Forward
0 new messages