The value of the variable name you register to must be a string, not a
variable.




On Sun, Apr 6, 2014 at 9:19 PM, <[email protected]> wrote:

> Hi list.
>
>
> I tried, unsuccessfully, to have a register key set to a variable name:
>
> -name: Some other task
>   [...]
>   vars:
>     register_name: a_specific_name
>
> - name: The task
>   [...]
>   register: "{{ register_name }}"
>
>
> I imagine the key is not evaluated,
> can someone confirm this ?
>
> Thanks.
>
> raphael.
>
> --
> 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/1ab14254-0785-412c-981a-17ba683a9bc7%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/1ab14254-0785-412c-981a-17ba683a9bc7%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/CAEVJ8QN2EQ0w8%2BMx_BrVBGgjuYF8SK-f_eY3BDhY5B8ZbBKPPA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to