with_items
(and the whole family of with_
loops) is a dictionary key defined in a task, not as a parameter to the action.
Fix the indentation:
- debug:
msg: "Instance: {{ item.instances }}"
with_items: "{{ elb_facts.elbs }}"
More Related Contents:
- ansible command to list all known hosts
- How can I use Ansible nested variable?
- How to copy files between two nodes using ansible
- Using set_facts and with_items together in Ansible
- Ansible fails with /bin/sh: 1: /usr/bin/python: not found
- Only check whether a line present in a file (ansible)
- How to get the first element of a list from the output of setup module in Ansible?
- In Ansible, how to combine variables from separate files into one array?
- Not possible to source .bashrc with Ansible
- Whats the difference between ansible ‘raw’, ‘shell’ and ‘command’?
- Specify sudo password for Ansible
- How do I register a variable and persist it between plays targeted on different nodes?
- Why does Ansible show “ERROR! no action detected in task” error?
- How to switch a user per task or set of tasks?
- How can a user with SSH keys authentication have sudo powers in Ansible? [duplicate]
- How can I make Ansible interpret a variable inside a variable?
- Ansible: How to iterate over a role with an array?
- Ansible stdout Formatting
- Ansible: how to construct a variable from another variable and then fetch it’s value
- How to join a list of strings in Ansible?
- ansible run command on remote host in background
- How to set environmental variables using Ansible
- ERROR! ‘fail’ is not a valid attribute for a Play
- Ansible with_subelements
- Ansible remote_user vs ansible_user
- Ansible “when variable == true” not behaving as expected
- Ansible with a bastion host / jump box? [duplicate]
- Ansible – Save registered variable to file
- Rundeck integration with Ansible through plugin
- Accessing inventory host variable in Ansible playbook