catalyst 802.1x interface configuration

Hello, I am very new to AWX. I have been a network engineer for about 10 years now.

I am looking to automate a configuration change that we would have to do to about 2k switches.

I would like to go from this

interface GigabitEthernet0/2

switchport access vlan 120

switchport mode access

switchport voice vlan 105

spanning-tree portfast

to this

interface GigabitEthernet0/2

switchport access vlan 120

switchport mode access

switchport voice vlan 105

ip device tracking maximum 10

authentication event server dead action authorize vlan 120

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

We have multiple access vlans and need to take that into account. For now we are using the current access vlan for the access if the radius servers are down or unreachable.

thank you

i am assuming these are cisco switches. There is a cisco module that will help you with this. There are also plenty of examples out on galaxy.ansible.com on how to do this.