On 05.07.2017 12:53, Paolo Galizzi wrote:
- name: 'Item'
  debug:
    var: item
  with_items: databases


- name: 'Item Name'
  debug:
    var: item.name
  with_items: databases

In earlier Ansible version "with_items: databases" the databases was seen as a variable, in newer version it's seen as the literal string databases.

So in 2.3 you need to add the curly brackets but this syntax also works in previous version of Ansible.

- name: 'Item Name'
  debug:
    var: item.name
  with_items: '{{ databases }}'


--
Kai Stian Olstad

--
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/6fd460ea4aeb3b8791880736716d3058%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to