Hi all,

I am having an odd issue where if I use a group filter in my playbook, I 
can no longer access any of the `ansible_` facts. I am able to access the 
`ec2_` facts. If I remove my group filter, everything works fine.

### Playbook
---
- hosts: api:db:lb:d3:&prd
  remote_user: root
  gather_facts: yes 
  tags: [facts]

- hosts: localhost
  connection: local
  gather_facts: no
  tags: [local]
  tasks:
    - 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



### Template

  {% for host in groups['db'] %}
  <tr>
    {{ hostvars[host]['ec2_private_ip_address']}}
    {{ hostvars[host]['ec2_tag_Name']}}
    {{ hostvars[host]['ansible_processor_cores']}}
  </tr>
  {% endfor %}

-- 
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/e658b142-bcab-4b1e-81bd-f1364197e062%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to