ansible template vars for command line invocation

Hi, I have a bash command of:

ansible beta -m template -a 'src=…/templates/www.conf.j2 dest=/root/www.conf ’

I need to specify a variable on the command line.

I tried specifying it in the -a string, but got an error that template only accepts certain variables.

IF the template was in a playbook I could provide the variable(s) using -e. How can I do this from the command line invocation?

Thanks,
Ed

Can you share the error message? Didn’t work if you use as an “extra var” added to the command line you posted?