title: Ansible can't read from host_vars
body: <p>I have a problem
  <code>
  "AnsibleUndefinedVariable: One or more undefined variables: 'str object' has no attribute 'node1'", 'failed': True}
  </code></p>
  
  <p>In Hosts : 
  <code>
  [test]
  192.168.1.1
  </code></p>
  
  <p>In /etc/ansible/host_vars/192.168.1.1
  <code>
  nginx:
  - { node1: "192.168.2.1" }
  </code></p>
  
  <p>In /etc/ansible/roles/nginx/templates/site.j2</p>
  
  <p><code>  server {{ item.node1 }}:80;</code></p>
  
  <p>Help me please why ansible can't read a host_vars files and put variable in template/ file. Thx</p>