Variable Register: key

26 views
Skip to first unread message

ralo...@gmail.com

unread,
Apr 6, 2014, 9:19:03 PM4/6/14
to ansible...@googlegroups.com
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.

Michael DeHaan

unread,
Apr 9, 2014, 9:35:37 AM4/9/14
to ansible...@googlegroups.com
The value of the variable name you register to must be a string, not a variable.




--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1ab14254-0785-412c-981a-17ba683a9bc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages