On 01.07.2019 22:32, Brian Goulet wrote:
>    - name: output all vlan IDs <<<<<<<this task fails
>      debug:
>        msg: "{{item.id}}"
>        with_items: "{{ios_vlans}}"

with_items is a parameter for the task not the module debug, so with_items need 
to indented at the same level as name and debug.
with_items takes a list, so you need 
  with_items: "{{ ios_vlans.vlans }}"


-- 
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/d59aec5c-2102-5e23-76ab-00731b2ee058%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to