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

El miércoles, 11 de agosto de 2021 a la(s) 08:58:34 UTC-5, Ed Greenberg 
escribió:

> 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 
>

-- 
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/ad4095ee-d22e-43b5-bd08-f2b326fe3d8fn%40googlegroups.com.

Reply via email to