Hey Alex,
You may check the acl_interfaces
<https://github.com/ansible-collections/cisco.ios/blob/main/plugins/modules/ios_acl_interfaces.py>
and
use the gathered state to gather facts related to the acls applied on any
interface.

Regards,

On Mon, Jun 12, 2023 at 2:29 AM Alex <[email protected]> wrote:

> 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.
>
> --
> 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/24e225e7-492f-4780-9a1e-3b9b915c288cn%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/24e225e7-492f-4780-9a1e-3b9b915c288cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
*Sagar Paul*

Software Engineer, Ansible
<https://www.redhat.com/>

-- 
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/CAEs9WgYWQUvC2dSngU-gJ7qBg3u%3DGp9H4AdRfEVEB263c6bkuA%40mail.gmail.com.

Reply via email to