---
droplets:
- name: consul
count: [1,2,3,4,5]
region: nyc2
region_id: 4
- name: influxdb
count: [1,2,3]
region: nyc2
region_id: 4
- name: elasticsearch
count: [1,2,3,4]
region: nyc2
region_id: 4
vars_files:
- vars/testing.yml
tasks:
- name: Print phone records
debug: msg="{{ item.0.name }}.{{ item.1 }} in {{ item.0.region }}({{ item.0.region_id }})"
with_subelements:
- droplets
- count
--
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/0a5ac977-f227-47de-b8c1-f10951e3779b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
with_sequence: count=5 I'm not sure how that would work with with_items, but it's worth a try.. (with_nested used with sequences?)
--
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/86baebe5-0050-488a-84d4-270776c75ef0%40googlegroups.com.