title: Why Ansible doesn't read the templates in relative path?
body: <p>I am using Ansible and I have some problems with the templates path. Here is the error output when I execute:</p>
  
  <pre><code>$ ansible-playbook -i hosts site.yml 
  
  PLAY [users] ****************************************************************** 
  
  GATHERING FACTS *************************************************************** 
  ok: [10.0.3.240]
  
  TASK: [templates] ************************************************************* 
  fatal: [10.0.3.240] =&gt; {'msg': 'unable to read /home/robe/Desktop/ansible_demo/fig.conf.j2', 'failed': True}
  fatal: [10.0.3.240] =&gt; {'msg': 'unable to read /home/robe/Desktop/ansible_demo/fig.conf.j2', 'failed': True}
  
  FATAL: all hosts have already failed -- aborting
  
  PLAY RECAP ******************************************************************** 
             to retry, use: --limit @/home/robe/site.retry
  
  10.0.3.240                 : ok=1    changed=0    unreachable=1    failed=0 
  </code></pre>
  
  <p>This is my project structure:</p>
  
  <pre><code>$ tree
  .
  ├── ansible.cfg
  ├── hosts
  ├── roles
  │   └── users
  │       ├── files
  │       ├── handlers
  │       │   └── main.yml
  │       ├── tasks
  │       │   └── main.yml
  │       ├── templates
  │       │   └── fig.conf.j2
  │       └── vars
  │           └── main.yml
  ├── site.yml
  └── Vagrantfile
  </code></pre>
  
  <p>This is my site.yml code:</p>
  
  <pre><code>---
  - hosts: users
    remote_user: root
    sudo: True
    tasks:
    - name: templates
      template: src="fig.conf.j2" dest="/home/vagrant/fig.conf"
  </code></pre>
  
  <p>Then, why Ansible doesn't look into templates directory and it only looks in the root directory.</p>