Push radius configuration via playbook

I have ansible running on a docker container on my companies air gapped system. I want to push our radius configuration to all of the switches via a playbook however I am having no luck searching this up online.

I found this on a cisco forum but got an error of {“changed”: false, “module_stderr”:

followed by the command I ran. At the end there is an error that reads “MODULE FAILURE: No start of json char found”

Here is the code I ran, but with no variable. I set my radius server IP in the {{“OTHER IP”}} spot and my secret key in the {{“KEY ONE”}}

  • name: SET RADUIS
    ios_config:
    commands:
    -radius-server host {{“OTHER IP”}} auth-port 1812 acct-port 1813 key 7 {{“KEY ONE”}}

I do have another task that is executing on the target host switch and it is successful.

This looks like you’re mixing cisco.ios.ios_command and cisco.ios.ios_config module syntaxes. Based on the command examples I’d try something like this:

- name: SET RADUIS
  cisco.ios.ios_command:
    commands:
      - radius-server host "{{OTHER IP}}" auth-port 1812 acct-port 1813 key 7 "{{KEY ONE}}"

I can’t tell how much of your formatting the forum software ate, and how much of it might need help, but it did look like you had your quotes/mustaches in the wrong order ({{“”}} instead of “{{}}”)