title: Ansible issuing warning about localhost
body: <p>I am running the following <code>ansible</code> playbook</p>
  <pre class="lang-yaml prettyprint-override"><code>- hosts: localhost
    connection: local
    vars_files:
      - vars/config_values.yaml
  
    gather_facts: no
  
    tasks:
      - name: Set correct project in gcloud config
        shell: &quot;gcloud config set project {{ google_project_name }}&quot;
  </code></pre>
  <p>Which yields the following warning:</p>
  <blockquote>
  <p>[WARNING]: No inventory was parsed, only implicit localhost is available</p>
  <p>[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'</p>
  </blockquote>
  <p>Given that I am explicitly stating that it will be run against <code>host: localhost</code>, why is it complaining about no inventory being parsed and that the &quot;provided host list is empty&quot;?</p>
  <p>How to remove these warnings? (without just suppressing them if possible)</p>