title: Is there a way to override a template defined into an ansible galaxy role?
body: <p>I'm trying to set up a server with ansible and I'd like to use <a href="https://github.com/geerlingguy/ansible-role-passenger" rel="noreferrer">this galaxy role</a>.</p>
  
  <p>It defines a <a href="https://github.com/geerlingguy/ansible-role-passenger/blob/master/templates/passenger.j2" rel="noreferrer">template</a> that I'd like to customize, but I don't know how.</p>
  
  <p>Right now I defined the role into <code>requirements.yml</code> and I installed it using:</p>
  
  <p><code>ansible-galaxy install -r requirements.yml</code></p>
  
  <p>which installed the role somewhere on my system.</p>
  
  <p>I tried by recreating the folder tree into my repository where I store my playbooks:</p>
  
  <pre><code>roles
    |- ansible-role-passenger
       |- templates
          |- passenger.j2
  </code></pre>
  
  <p>but it does not work. When I run my playbook, ansible uses the <code>passenger.j2</code> file from inside the galaxy role.</p>
  
  <p>I think I can fork the galaxy role on github and just edit the file <code>passenger.j2</code> like I want, but I don't know if this is there is a "better" way to do it :)</p>