Thanks Matt, please see following comments:

On Monday, November 3, 2014 12:44:38 PM UTC+11, Matt Martz wrote:
>
> It might help to actually state what the "syntax error" is.


ERROR: Syntax Error while loading YAML script copyCert.yml

creates: /etc/{{ my_server }}.crt
                                          ^

>
> Also what version of ansible are you using?
>
>  ansible-1.7-1.el6.noarch

On Sunday, November 2, 2014, hce h <[email protected] <javascript:>> wrote:
>
>> Hi,
>>
>> The following examples gave me a syntax error, appreciate clues to use 
>> template inside creates statement.
>>
>> shell: "cp /tmp/{{ my_server }}.crt /etc/{{ my_server }}.crt"
>> args:
>>   creates: /etc/{{ my_server }}.crt
>>
>> Thank you.
>>
>> Kind regards,
>>
>> - j
>>
>> -- 
>> 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 post to this group, send email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/587031e4-c442-4f9d-9ab9-d03ad86227f2%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/587031e4-c442-4f9d-9ab9-d03ad86227f2%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Matt Martz
> @sivel
> sivel.net
>
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/125b4c27-db91-46df-8936-56cbc846be29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to