title: ansible does not load my host_vars/server-foo/public.yml file
body: <p>i have this structure</p>
  
  <pre><code>hosts
  host_vars/server-foo/public.yml
  group_vars/staging/public.yml
  </code></pre>
  
  <p>and in the <code>hosts</code> file i have defined a group like this</p>
  
  <pre><code>[staging]
  server-foo
  </code></pre>
  
  <p>Im trying to define a variable that will only be true for <code>server-foo</code>, so i add the line to the file <code>host_vars/server-foo/public.yml</code></p>
  
  <pre><code>bar: true
  </code></pre>
  
  <p>When i try to run the playbook, im getting an error </p>
  
  <pre><code>fatal: [staging-accounts] =&gt; error while evaluating conditional: bar
  </code></pre>
  
  <p>If i add <code>bar: true</code> to <code>group_vars/staging/public.yml</code>, then the variable is picked up without any issues.</p>
  
  <p>Any ideas what i'm doing wrong ? I believe i have been following the ansible suggested method for defining host specific variables.</p>