# Ansible for Cisco switchport interface and 802.1x config

**URL:** <https://forum.ansible.com/t/ansible-for-cisco-switchport-interface-and-802-1x-config/33463>\
**Category:** Ansible Project\
**Created:** [July 22, 2020, 5:58pm UTC](https://forum.ansible.com/t/ansible-for-cisco-switchport-interface-and-802-1x-config/33463 "2020-07-22T17:58:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waqas\_Gondal](https://avatars.discourse-cdn.com/v4/letter/w/9e8a1a/32.png) [@Waqas\_Gondal](https://forum.ansible.com/u/Waqas_Gondal)\
**Post date:** [July 22, 2020, 5:58pm UTC](https://forum.ansible.com/t/ansible-for-cisco-switchport-interface-and-802-1x-config/33463/1 "2020-07-22T17:58:19Z")

</div>

Hi

I am working on putting Cisco ISE into enforcement mode on production Cisco switches for 802.1x wired authentication.

Currently the access interfaces all have ‘authentication open’ which needs to be removed.

I have Ansible installed and ready to configure switches.

Is there anyway I could configure a playbook to find access ports that have ‘authentication open’ and remove it?

Thanks!

---

<div class="post-metadata">

**Author:** ![Heinz\_Meier](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@Heinz\_Meier](https://forum.ansible.com/u/Heinz_Meier)\
**Post date:** [July 23, 2020, 6:22am UTC](https://forum.ansible.com/t/ansible-for-cisco-switchport-interface-and-802-1x-config/33463/2 "2020-07-23T06:22:23Z")

</div>

Hi,

you need the cisco\_ios module with a jinja template.
