new to ansible

20 views
Skip to first unread message

wanna know

unread,
Sep 21, 2015, 8:36:20 AM9/21/15
to Ansible Project
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
Reply all
Reply to author
Forward
0 new messages