title: Why can't I access vars loaded via file in Ansible?
body: <p>Why can't I access these Ansible file variables from within the Ansible task?</p>
  
  <p>I've tried <code>vars_files</code> as well wit combinations of calling <code>global.varname</code> and <code>global[varname]</code>   </p>
  
  <pre><code>- hosts: localhost
    gather_facts: True
    remote_user: root
    - include_vars: site_vars.yml
    tasks:
      - digital_ocean:
          state: present
          command: droplet
          unique_name: yes
          name: do_16_04_common
          api_token: "{{HOST_PROVIDER}}"
  </code></pre>
  
  <p><code>global_vars.yml</code>:</p>
  
  <pre><code>global:
    WORKER_TAG_PREFIX:"dev"
    HOST_PROVIDER:"heroku-prod"
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>fatal: [localhost]: FAILED! => {"failed": true, "msg": "ERROR! 'ansible.parsing.yaml.objects.AnsibleUnicode object' has no attribute 'WORKER_TAG_PREFIX'"}</p>
  </blockquote>