# new to ansible

**URL:** <https://forum.ansible.com/t/new-to-ansible/19308>\
**Category:** Ansible Project\
**Created:** [September 20, 2015, 1:04pm UTC](https://forum.ansible.com/t/new-to-ansible/19308 "2015-09-20T13:04:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wanna\_know](https://avatars.discourse-cdn.com/v4/letter/w/a587f6/32.png) [@wanna\_know](https://forum.ansible.com/u/wanna_know)\
**Post date:** [September 20, 2015, 1:04pm UTC](https://forum.ansible.com/t/new-to-ansible/19308/1 "2015-09-20T13:04:07Z")

</div>

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
