hi all,
i ’ m new to ansible, i wanted to know how could i loop thru the following set of data.
tried with_items but i had no luck so far.
ok: [HOST] => {“ansible_facts”: {“foo”: “[u’home instance’, u’home instance’]”}}
ok: [HOST] => {“ansible_facts”: {“foo”: “[u’home instance’]”}}
- debug: var=foo
- name: test list
shell: cmd {{ item }}
with_items: - “{{ foo_item }}”
- debug: var=foo_item
thanks