I am trying to count the instances inside an elb. This is my Ansible playbook:
- name: Get elb facts local_action: module: ec2_elb_facts name: \"{{
with_items (and the whole family of with_ loops) is a dictionary key defined in a task, not as a parameter to the action.
with_items
with_
Fix the indentation:
- debug: msg: "Instance: {{ item.instances }}" with_items: "{{ elb_facts.elbs }}"