This will gather form api hosts always no matter how you limit the
hosts, the drawback is that the loop is sequential.
- hosts: localhost
  connection: local
  gather_facts: no
  tags: [local]
  tasks:
    - name: gather api facts
      setup:
      delegate_to: "{{item}}"
      delegate_facts: True
      with_inventory_hostname: api

    - name: store date time
      set_fact: date_time="{{lookup('pipe','date')}}"
    - name: build wiki
      template: src=roles/wiki/templates/wiki.test.j2
dest=roles/wiki/files/wiki.html


----------
Brian Coca

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7f-k%2B1NN3FdMVS2TJKDT3vbckFcYbtVSVvxVKv1mvZpSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to