title: Referencing filter in Ansible collection with error: template error while templating string: No filter named
body: <p>I'm fairly new to Ansible and I'm currently having trouble with Ansible collections. I have this repository with a bunch of roles and we wanted to leverage the use of Ansible Collections.</p>
  <p>This is the structure of the Ansible collection at the moment:</p>
  <p><a href="https://i.stack.imgur.com/wwuJC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wwuJC.png" alt="collection structure" /></a></p>
  <p>Now, I was able to install this in another repo (because it was using the <code>check_service_id</code> role in it using <code>namespace.name.check_service_id</code>).</p>
  <p>My main question, now, is how do I do the same with the filters inside <em>filters.py</em>?</p>
  <p>I tried <code>namespace.name.filtername</code> but it was not working. Instead it was giving me an error:</p>
  <blockquote>
  <p>template error while templating string: No filter named 'namespace.name.filtername'.. String: {{ p_contextobject | namespace.name.filtername }}</p>
  </blockquote>