Thank you I will check this out. Is there a GIT for example templates using
this?

On Tue, Sep 29, 2020, 6:55 AM [email protected] <[email protected]>
wrote:

> Hi,
>
> use cisco ios config module with a jinja template. Works like a charm for
> me.
>
>
> https://docs.ansible.com/ansible/latest/collections/cisco/ios/ios_config_module.html
>
> Michael
> [email protected] schrieb am Montag, 28. September 2020 um 22:16:43
> UTC+2:
>
>> Hello experts, 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
>> int gi 0/1
>>  switchport access vlan 3216
>>  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
>>
>>
>>
>>
>> --
> 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/6a76ee96-0298-43d2-aa1c-8c8fb882c3f3n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/6a76ee96-0298-43d2-aa1c-8c8fb882c3f3n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CACT9_J9DJGLAPcANCQhvmpnHcv%2BcFGCE45AKUPTz_jhoMHfo1w%40mail.gmail.com.

Reply via email to