jinja2.exceptions.TemplateAssertionError: no filter named 'regex_search'
--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project+unsubscribe@googlegroups.com.
To post to this group, send email to awx-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/697cd8e1-9b66-465b-84de-95f6674e68a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
That's probably not going to work, instance filters are specific to whatever inventory source you are using. Currently they are implemented on ec2 and vmware inventory sources and you can see more information here:http://docs.ansible.com/ansible-tower/latest/html/userguide/inventories.html#amazon-web-services-ec2
On Wed, Nov 1, 2017 at 5:13 PM, David Reagan <jer...@gmail.com> wrote:
Is it possible to filter inventories and sources using Jinja filters? As in, filters listed here: http://docs.ansible.com/ansible/latest/playbooks_filters.html
When I try to use the regex_search filter, I get this error:jinja2.exceptions.TemplateAssertionError: no filter named 'regex_search'
Specifically, I have tried to set the INSTANCE FILTERS field on my source to {{ config.name | regex_search('(.*-test-.*') }}.
I am looking for a more flexible way to filter hosts than setting INSTANCE FILTERS to something like {{ "foo" in config.name }} can provide.
--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project...@googlegroups.com.
To post to this group, send email to awx-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/697cd8e1-9b66-465b-84de-95f6674e68a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.