Thanks Michael, that does the trick. 

Much appreciate it.

On Tuesday, November 4, 2014 1:34:39 AM UTC+11, Michael DeHaan wrote:
>
> If you share the whole exception you should find it's giving you helper 
> text telling you what to do with it.
>
> Let us know if not.
>
> meanwhile, it seems you are doing a local copy, which is a little curious 
> compared to doing a remote copy (copy module).
>
> All being said, this is the simplest possible representation:
>
> shell: cp /tmp/{{my_server}}.crt /etc/{{my_server}}.crt
>  creates=/etc/{{my_server}}.crt
>
>
>
> On Sun, Nov 2, 2014 at 10:59 PM, hce h <[email protected] <javascript:>> 
> wrote:
>
>> 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]> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/125b4c27-db91-46df-8936-56cbc846be29%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/125b4c27-db91-46df-8936-56cbc846be29%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/0210f81c-8133-4f26-807b-2215c4a69e7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to