register variable value + string

18 views
Skip to first unread message

Anthony Cheng

unread,
Sep 25, 2016, 2:48:32 PM9/25/16
to Ansible Project
Does anyone know how I would go about to register values into variable + string (within a loop), so something like:

  register: "{{ item }}"_LIST
  with_items: "{{ LIST.stdout_lines }}"  

or 

  register: {{ item }}_LIST


ZillaYT

unread,
Sep 26, 2016, 11:13:48 AM9/26/16
to Ansible Project
I don't think this is possible. I also experimented with this and discovered, as you did, that it may not be possible.
Reply all
Reply to author
Forward
0 new messages