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”}}
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:
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 “{{}}”)
Ok I’ll check that out! Sorry a newbie here. I did some more researching and see that ios.command sends strings as commands through top level mode (config t). So I did this and was able to set the radius server however now I get a failure when I run the line
aaa group server radius PRIMARY
because this takes me from config t into a mode of (config-sg-radius).
Do you know a way to work around this so I can set the server name for my primary and secondary radius servers?