cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1940
Views
0
Helpful
0
Replies

Playbook for cisco switch interface Network Access Control Ansible

Richard Lucht
Level 1
Level 1

I am new to ansible/

 

I am looking for a way to automate access ports for NAC on legacy authentication.  I only want to configure ports that already have "switchport mode access" and the "authentication event server dead action authorize vlan" we would like to match to the current vlan.

 
I need to go from
 switchport access vlan 105
 switchport mode access
 switchport voice vlan 120  
 spanning-tree portfast
 
to 
 switchport access vlan 105
 switchport mode access
 switchport voice vlan 120
 ip device tracking maximum 10
 authentication event server dead action authorize vlan 105
 authentication host-mode multi-auth
 authentication order dot1x mab webauth
 authentication priority dot1x mab
 authentication port-control auto
 authentication periodic
 authentication timer reauthenticate server
 mab
 dot1x pae authenticator
 dot1x timeout tx-period 10
 spanning-tree portfast
0 Replies 0